Changeset 6545 in orxonox.OLD for branches/avi_play
- Timestamp:
- Jan 18, 2006, 2:11:34 PM (19 years ago)
- Location:
- branches/avi_play/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/world_entities/movie_entity.cc
r6532 r6545 19 19 #include "load_param.h" 20 20 #include "factory.h" 21 #include "material.h"22 21 23 22 #include "network_game_manager.h" … … 36 35 37 36 media_container = new MediaContainer(); 38 39 this->material = new Material;40 this->material->setDiffuseMap("maps/radialTransparency.png");41 37 42 38 axis = 0; … … 59 55 MovieEntity::~MovieEntity () 60 56 { 61 delete this->material;62 57 delete this->media_container; 63 58 } … … 139 134 glDisable(GL_LIGHTING); 140 135 141 this->material->select();136 glEnable(GL_TEXTURE_2D); 142 137 glBindTexture(GL_TEXTURE_2D, media_container->getFrameTexture(counter)); 138 139 glColor3f(1.0, 1.0, 1.0); 143 140 144 141 glBegin(GL_QUADS); -
branches/avi_play/src/world_entities/movie_entity.h
r6532 r6545 11 11 12 12 class MediaContainer; 13 class Material;14 13 15 14 class MovieEntity : public WorldEntity … … 17 16 private: 18 17 MediaContainer* media_container; 19 Material* material;20 18 21 19 int counter;
Note: See TracChangeset
for help on using the changeset viewer.