Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 14, 2007, 9:35:08 PM (18 years ago)
Author:
gfilip
Message:

another update :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/camera/src/world_entities/test_entity.cc

    r10212 r10236  
    2525
    2626
    27 #include "material.h"
    28 
    2927#include "state.h"
    3028
     
    3533CREATE_FACTORY(TestEntity);
    3634
    37 float i=0;
    38 bool state=1;
     35
    3936
    4037/**
     
    7370  this->registerObject(this, TestEntity::_objectList);
    7471  this->toList(OM_GROUP_00);
     72  CM= new cameraman();
     73  test();
     74}
    7575
    76   /*this->material = new Material();
    77   this->material->setIllum(3);
    78   this->material->setDiffuse(1.0,1.0,1.0);
    79   this->material->setSpecular(0.0,0.0,0.0);
    80   this->material->setAmbient(1.0, 1.0, 1.0);
    81   this->material->setDiffuseMap("maps/TE2.tga");*/
     76void TestEntity::test()
     77{
     78  CM->moveCurrCam(-200, 0, 0);
     79  CM->createCam();
     80  CM->moveCam(0, -200, 0, 1);
    8281}
     82
    8383
    8484
     
    9494void TestEntity::draw() const
    9595{
    96 //   if(!mediaLoaded)
    97 //     false;
    9896
    99 //  glPushAttrib(GL_ENABLE_BIT);
    100 //  glDisable(GL_LIGHTING);
    101 //   glDisable(GL_BLEND);
    102 //
    103 //   glEnable(GL_TEXTURE_2D);
    104 //   glBindTexture(GL_TEXTURE_2D, media_container->getFrameTexture(counter));
    105 
    106 //  glPushMatrix();
    107  /* glTranslatef (this->getAbsCoor ().x,
    108                 this->getAbsCoor ().y,
    109                 this->getAbsCoor ().z);
    110   glRotatef(axis, 0.0f, 1.0f, 0.0f);*/
    111 //PRINTF(0)("axis: %f\n", axis);
    112 //glEnable(GL_BLEND);   // Turn Blending On
    113 
    114 
    115 
    116 //glColor4f(0, 0, 0, i);
    117 
    118 //  glBegin(GL_QUADS);
    119 //    glVertex3f(-1.0f, -100.0f, -100.0f);
    120 //     glTexCoord2f(1.0f, 1.0f);
    121 //    glVertex3f(-1.0f, -100.0f, 100.0f);
    122 //     glTexCoord2f(0.0f, 1.0f);
    123 //    glVertex3f(-1.0f, 100.0f, 100.0f);
    124 //     glTexCoord2f(0.0f, 0.0f);
    125 //    glVertex3f(-1.0f, 100.0f, -100.0f);
    126 //     glTexCoord2f(1.0f, 0.0f);
    127 
    128 //  glEnd();
    129 
    130 //  glPopMatrix();
    131 //  glPopAttrib();
    13297}
    13398
     
    137102void TestEntity::tick (float time)
    138103{
    139 //  if (state==0 && i==1)
    140 //    i=0;
    141 //  if (state==1 && i<=1)
    142 //    i=i+0.005;
     104
    143105}
    144106
     
    146108void  TestEntity::changeState (bool sta)
    147109{
    148   state=sta;
     110
    149111}
Note: See TracChangeset for help on using the changeset viewer.