- Timestamp:
- Nov 8, 2005, 4:46:24 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/graphics_engine.cc
r5421 r5509 301 301 glMatrixMode(GL_PROJECTION_MATRIX); 302 302 glLoadIdentity(); 303 glViewport(0, 0,width,height);// Reset The Current Viewport303 glViewport(0, 0, width, height); // Reset The Current Viewport 304 304 } 305 305 -
trunk/src/proto/proto_world_entity.cc
r4838 r5509 15 15 16 16 #include "proto_world_entity.h" 17 #include "glincl.h"18 #include "stdincl.h"19 #include "vector.h"20 #include "model.h"21 17 22 18 using namespace std; … … 43 39 } 44 40 41 45 42 /** 46 43 * initializes the ProtoWorldEntity 47 44 * @todo change this to what you wish 48 45 */ 49 void ProtoWorldEntity::init( void)46 void ProtoWorldEntity::init() 50 47 { 51 this->setClassID(CL_PROTO_WORLD_ENTITY, ) 52 ... 48 this->setClassID(CL_PROTO_WORLD_ENTITY, "ProtoWorldEntity"); 49 50 /** 51 * @todo: Write CL_PROTO_WORLD_ENTITY INTO THE src/defs/class_id.h (your own definition) 52 */ 53 53 54 } 55 54 56 55 57 /** … … 63 65 static_cast<WorldEntity*>(this)->loadParam(root); 64 66 65 ... 67 68 /** 69 * @todo: make the class Loadable 70 */ 66 71 } 67 72 … … 79 84 * draws this worldEntity 80 85 */ 81 void ProtoWorldEntity::draw () 86 void ProtoWorldEntity::draw () const 82 87 { 83 88 glMatrixMode(GL_MODELVIEW); … … 97 102 glPopMatrix(); 98 103 } 104 105 106 /** 107 * 108 * 109 */ 110 void ProtoWorldEntity::collidesWith (WorldEntity* entity, const Vector& location) 111 { 112 113 } -
trunk/src/proto/proto_world_entity.h
r4838 r5509 20 20 void init(); 21 21 22 virtual void draw(); 22 virtual void postSpawn (); 23 virtual void leftWorld (); 24 25 26 virtual void draw() const; 23 27 virtual void tick(float time); 28 virtual void collidesWith (WorldEntity* entity, const Vector& location); 24 29 25 30 private:
Note: See TracChangeset
for help on using the changeset viewer.