- Timestamp:
- Feb 2, 2006, 10:02:24 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r6988 r6989 74 74 75 75 76 GameWorld::GameWorld( const TiXmlElement* root)76 GameWorld::GameWorld() 77 77 : StoryEntity() 78 78 { -
trunk/src/story_entities/game_world.h
r6845 r6989 26 26 27 27 public: 28 GameWorld ( const TiXmlElement* root = NULL);28 GameWorld (); 29 29 virtual ~GameWorld (); 30 30 -
trunk/src/story_entities/multi_player_world.cc
r6512 r6989 38 38 39 39 MultiPlayerWorld::MultiPlayerWorld(const TiXmlElement* root) 40 : GameWorld( root)40 : GameWorld() 41 41 { 42 42 this->setClassID(CL_MULTI_PLAYER_WORLD, "MultiPlayerWorld"); -
trunk/src/story_entities/simple_game_menu.cc
r6980 r6989 49 49 50 50 SimpleGameMenu::SimpleGameMenu(const TiXmlElement* root) 51 : GameWorld( root)51 : GameWorld() 52 52 { 53 53 this->setClassID(CL_SIMPLE_GAME_MENU, "SimpleGameMenu"); -
trunk/src/story_entities/single_player_world.cc
r6512 r6989 39 39 40 40 SinglePlayerWorld::SinglePlayerWorld(const TiXmlElement* root) 41 : GameWorld( root)41 : GameWorld() 42 42 { 43 43 this->setClassID(CL_SINGLE_PLAYER_WORLD, "SinglePlayerWorld"); -
trunk/src/world_entities/image_entity.cc
r6852 r6989 128 128 void ImageEntity::tick(float dt) 129 129 { 130 // let the crosshair rotate131 //this->shiftDir2D(dt * rotationSpeed);132 130 133 134 float z = 0.0f;135 glReadPixels ((int)this->getAbsCoor2D().x,136 GraphicsEngine::getInstance()->getResolutionY()-(int)this->getAbsCoor2D().y-1,137 1,138 1,139 GL_DEPTH_COMPONENT,140 GL_FLOAT,141 &z);142 143 144 GLdouble objX=.0, objY=.0, objZ=.0;145 gluUnProject(this->getAbsCoor2D().x,146 GraphicsEngine::getInstance()->getResolutionY()-this->getAbsCoor2D().y-1,147 .99, // z148 GraphicsEngine::modMat,149 GraphicsEngine::projMat,150 GraphicsEngine::viewPort,151 &objX,152 &objY,153 &objZ );154 155 //this->setAbsCoor(objX, objY, objZ);156 131 } 157 132
Note: See TracChangeset
for help on using the changeset viewer.