Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6600 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Jan 18, 2006, 5:25:48 PM (19 years ago)
Author:
bensch
Message:

TRUNK: merged the avi_play branche again

Location:
trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/movie_entity.cc

    r6532 r6600  
    1919#include "load_param.h"
    2020#include "factory.h"
    21 #include "material.h"
    2221
    2322#include "network_game_manager.h"
     
    3635
    3736  media_container = new MediaContainer();
    38 
    39   this->material = new Material;
    40   this->material->setDiffuseMap("maps/radialTransparency.png");
    4137
    4238  axis = 0;
     
    5955MovieEntity::~MovieEntity ()
    6056{
    61   delete this->material;
    6257  delete this->media_container;
    6358}
     
    139134  glDisable(GL_LIGHTING);
    140135
    141   this->material->select();
     136  glEnable(GL_TEXTURE_2D);
    142137  glBindTexture(GL_TEXTURE_2D, media_container->getFrameTexture(counter));
     138
     139  glColor3f(1.0, 1.0, 1.0);
    143140
    144141  glBegin(GL_QUADS);
  • trunk/src/world_entities/movie_entity.h

    r6532 r6600  
    1111
    1212class MediaContainer;
    13 class Material;
    1413
    1514class MovieEntity : public WorldEntity
     
    1716  private:
    1817    MediaContainer* media_container;
    19     Material* material;
    2018
    2119    int counter;
Note: See TracChangeset for help on using the changeset viewer.