Changeset 9869 in orxonox.OLD for trunk/src/world_entities/effects/billboard.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/effects/billboard.cc
r9406 r9869 26 26 27 27 28 29 CREATE_FACTORY(Billboard, CL_BILLBOARD);30 28 #include "class_id_DEPRECATED.h" 29 ObjectListDefinitionID(Billboard, CL_BILLBOARD); 30 CREATE_FACTORY(Billboard); 31 31 32 32 /** … … 57 57 void Billboard::init() 58 58 { 59 this-> setClassID(CL_BILLBOARD, "Billboard");59 this->registerObject(this, Billboard::_objectList); 60 60 this->setName("Billboard"); 61 61 … … 124 124 glDisable(GL_LIGHTING); 125 125 glDisable(GL_FOG); 126 126 127 127 glPushMatrix(); 128 128 … … 130 130 //glTranslatef(0,0,0); 131 131 this->material->select(); 132 132 133 133 const PNode* camera = State::getCameraNode(); //!< @todo MUST be different 134 134 Vector cameraPos = camera->getAbsCoor(); … … 141 141 h.normalize(); 142 142 v.normalize(); 143 143 144 144 v *= sizeX; 145 145 h *= sizeY; … … 165 165 this->getAbsCoor().z - h.z + v.z); 166 166 glEnd(); 167 168 167 168 169 169 glPopMatrix(); 170 170 171 171 glPopAttrib(); 172 172 }
Note: See TracChangeset
for help on using the changeset viewer.