Changeset 7115 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Feb 8, 2006, 2:42:08 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/movie_entity.cc
r7049 r7115 63 63 LoadParam(root, "name", this, MovieEntity, loadMovie); 64 64 LoadParam(root, "axis", this, MovieEntity, setAxis); 65 //LoadParam(root, "rotation", this, MovieEntity, setRotation);65 LoadParam(root, "rotation", this, MovieEntity, setRotation); 66 66 LoadParam(root, "size", this, MovieEntity, setSize); 67 67 LoadParam(root, "fps", this, MovieEntity, setFPS); … … 127 127 } 128 128 129 if(rotation != 0) 130 axis = (int)(axis + (time * 360/rotation))%360; 129 axis += (time * rotation/360.0); 131 130 } 132 131 … … 142 141 false; 143 142 143 glPushAttrib(GL_ENABLE_BIT); 144 glDisable(GL_LIGHTING); 145 glDisable(GL_BLEND); 146 147 glEnable(GL_TEXTURE_2D); 148 glBindTexture(GL_TEXTURE_2D, media_container->getFrameTexture(counter)); 149 144 150 glPushMatrix(); 145 151 glTranslatef (this->getAbsCoor ().x, … … 148 154 glRotatef(axis, 0.0f, 1.0f, 0.0f); 149 155 //PRINTF(0)("axis: %f\n", axis); 150 151 glPushAttrib(GL_ENABLE_BIT);152 glDisable(GL_LIGHTING);153 glDisable(GL_BLEND);154 155 glEnable(GL_TEXTURE_2D);156 glBindTexture(GL_TEXTURE_2D, media_container->getFrameTexture(counter));157 156 158 157 glColor3f(1.0, 1.0, 1.0); … … 165 164 glEnd(); 166 165 166 glPopMatrix(); 167 167 glPopAttrib(); 168 169 glPopMatrix();170 171 168 }
Note: See TracChangeset
for help on using the changeset viewer.