Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6545 in orxonox.OLD


Ignore:
Timestamp:
Jan 18, 2006, 2:11:34 PM (18 years ago)
Author:
hdavid
Message:

branches/avi_play: removed material

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  
    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);
  • branches/avi_play/src/world_entities/movie_entity.h

    r6532 r6545  
    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.