- Timestamp:
- Nov 11, 2004, 2:45:54 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 5 edited
- 6 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/Makefile.am
r2636 r2811 6 6 7 7 bin_PROGRAMS=orxonox 8 orxonox_SOURCES=orxonox.cc world.cc player.cc data_tank.cc world_entity.cc vector.cc camera.cc collision.cc command_node.cc ini_parser.cc keynames.cc track.cc base_entity.cc game_loader.cc campaign.cc story_entity.cc 8 orxonox_SOURCES=orxonox.cc world.cc player.cc data_tank.cc world_entity.cc vector.cc camera.cc collision.cc command_node.cc ini_parser.cc keynames.cc track.cc base_entity.cc game_loader.cc campaign.cc story_entity.cc object.cc array.cc material.cc 9 9 10 noinst_HEADERS=ability.h data_tank.h npc.h stdincl.h ai.h environment.h orxonox.h synchronisable.h base_entity.h error.h player.h track.h camera.h ini_parser.h power_up.h vector.h collision.h keynames.h proto_class.h world.h command_node.h list.h shoot_laser.h world_entity.h coordinates.h message_structures.h shoot_rocket.h 10 noinst_HEADERS=ability.h data_tank.h npc.h stdincl.h ai.h environment.h orxonox.h synchronisable.h base_entity.h error.h player.h track.h camera.h ini_parser.h power_up.h vector.h collision.h keynames.h proto_class.h world.h command_node.h list.h shoot_laser.h world_entity.h coordinates.h message_structures.h shoot_rocket.h object.h array.h material.h 11 11 12 12 -
orxonox/trunk/src/Makefile.in
r2711 r2811 57 57 command_node.$(OBJEXT) ini_parser.$(OBJEXT) keynames.$(OBJEXT) \ 58 58 track.$(OBJEXT) base_entity.$(OBJEXT) game_loader.$(OBJEXT) \ 59 campaign.$(OBJEXT) story_entity.$(OBJEXT) 59 campaign.$(OBJEXT) story_entity.$(OBJEXT) object.$(OBJEXT) \ 60 array.$(OBJEXT) material.$(OBJEXT) 60 61 orxonox_OBJECTS = $(am_orxonox_OBJECTS) 61 62 orxonox_LDADD = $(LDADD) … … 63 64 depcomp = $(SHELL) $(top_srcdir)/depcomp 64 65 am__depfiles_maybe = depfiles 65 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/ base_entity.Po \66 @AMDEP_TRUE@ ./$(DEPDIR)/ camera.Po ./$(DEPDIR)/campaign.Po \67 @AMDEP_TRUE@ ./$(DEPDIR)/c ollision.Po \66 @AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/array.Po \ 67 @AMDEP_TRUE@ ./$(DEPDIR)/base_entity.Po ./$(DEPDIR)/camera.Po \ 68 @AMDEP_TRUE@ ./$(DEPDIR)/campaign.Po ./$(DEPDIR)/collision.Po \ 68 69 @AMDEP_TRUE@ ./$(DEPDIR)/command_node.Po \ 69 70 @AMDEP_TRUE@ ./$(DEPDIR)/data_tank.Po \ 70 71 @AMDEP_TRUE@ ./$(DEPDIR)/game_loader.Po \ 71 72 @AMDEP_TRUE@ ./$(DEPDIR)/ini_parser.Po ./$(DEPDIR)/keynames.Po \ 73 @AMDEP_TRUE@ ./$(DEPDIR)/material.Po ./$(DEPDIR)/object.Po \ 72 74 @AMDEP_TRUE@ ./$(DEPDIR)/orxonox.Po ./$(DEPDIR)/player.Po \ 73 75 @AMDEP_TRUE@ ./$(DEPDIR)/story_entity.Po ./$(DEPDIR)/track.Po \ … … 163 165 AM_CXXFLAGS = "-I/usr/X11R6/include" 164 166 AM_LDFLAGS = "-L/usr/Mesa-6.0.1/lib -L/usr/X11R6/lib -lXt -lX11" $(MWINDOWS) 165 orxonox_SOURCES = orxonox.cc world.cc player.cc data_tank.cc world_entity.cc vector.cc camera.cc collision.cc command_node.cc ini_parser.cc keynames.cc track.cc base_entity.cc game_loader.cc campaign.cc story_entity.cc 166 noinst_HEADERS = ability.h data_tank.h npc.h stdincl.h ai.h environment.h orxonox.h synchronisable.h base_entity.h error.h player.h track.h camera.h ini_parser.h power_up.h vector.h collision.h keynames.h proto_class.h world.h command_node.h list.h shoot_laser.h world_entity.h coordinates.h message_structures.h shoot_rocket.h 167 orxonox_SOURCES = orxonox.cc world.cc player.cc data_tank.cc world_entity.cc vector.cc camera.cc collision.cc command_node.cc ini_parser.cc keynames.cc track.cc base_entity.cc game_loader.cc campaign.cc story_entity.cc object.cc array.cc material.cc 168 noinst_HEADERS = ability.h data_tank.h npc.h stdincl.h ai.h environment.h orxonox.h synchronisable.h base_entity.h error.h player.h track.h camera.h ini_parser.h power_up.h vector.h collision.h keynames.h proto_class.h world.h command_node.h list.h shoot_laser.h world_entity.h coordinates.h message_structures.h shoot_rocket.h object.h array.h material.h 167 169 all: all-am 168 170 … … 231 233 -rm -f *.tab.c 232 234 235 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/array.Po@am__quote@ 233 236 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/base_entity.Po@am__quote@ 234 237 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/camera.Po@am__quote@ … … 240 243 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ini_parser.Po@am__quote@ 241 244 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/keynames.Po@am__quote@ 245 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/material.Po@am__quote@ 246 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/object.Po@am__quote@ 242 247 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/orxonox.Po@am__quote@ 243 248 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/player.Po@am__quote@ -
orxonox/trunk/src/player.cc
r2730 r2811 25 25 Player::Player(bool isFree) : WorldEntity(isFree) 26 26 { 27 28 obj = new Object ("reaphigh.obj"); 29 /* 27 30 objectList = glGenLists(1); 28 31 glNewList (objectList, GL_COMPILE); … … 48 51 49 52 glEndList (); 50 53 */ 51 54 } 52 55 … … 104 107 glMultMatrixf ((float*)matrix); 105 108 106 glCallList (objectList); 109 glMatrixMode (GL_MODELVIEW); 110 glRotatef (-90, 0,1,0); 111 obj->draw(); 112 // glCallList (objectList); 107 113 108 114 -
orxonox/trunk/src/player.h
r2730 r2811 8 8 9 9 #include "world_entity.h" 10 #include "object.h" 10 11 11 12 //! Basic controllable WorldEntity … … 37 38 float acceleration; 38 39 GLuint objectList; 40 Object* obj; 39 41 40 42 void move (float time); -
orxonox/trunk/src/world.cc
r2792 r2811 177 177 glBegin(GL_LINES); 178 178 float height [500][100]; 179 float size = 2.0; 179 180 for ( int i = 0; i<=200; i+=1) 180 181 { 181 182 for (int j = 0; j<=50;j+=1) 182 183 { 183 height[i][j] = rand()/200321400 ;184 height[i][j] = rand()/200321400 + (j-25)*(j-25)/30; 184 185 185 186 } … … 189 190 for (int j = 0; j<=50;j+=1) 190 191 { 191 glVertex3f( 5*i, 5*j-125, height[i][j] -20);192 glVertex3f( 5*i+5.0, 5*j-125, height[i+1][j]-20);193 // glVertex3f( 5*i+5.0, 5*j+5.0-125, height[i+1][j+1]-20);194 glVertex3f( 5*i, 5*j-125, height[i][j] -20);195 glVertex3f( 5*i, 5*j+5.0-125, height[i][j+1]-20);192 glVertex3f(size*i, size*j-25*size, height[i][j] -20); 193 glVertex3f(size*i+size, size*j-25*size, height[i+1][j]-20); 194 // glVertex3f(size*i+5.0, size*j+5.0-12size, height[i+1][j+1]-20); 195 glVertex3f(size*i, size*j-25*size, height[i][j] -20); 196 glVertex3f(size*i, size*j+size -25*size, height[i][j+1]-20); 196 197 } 197 198 }
Note: See TracChangeset
for help on using the changeset viewer.