Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10018 in orxonox.OLD for branches


Ignore:
Timestamp:
Dec 5, 2006, 10:40:17 PM (18 years ago)
Author:
gfilip
Message:

first up

File:
1 edited

Legend:

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

    r9928 r10018  
    1 
    2 
    31/*
    42   orxonox - the future of 3D-vertical-scrollers
     
    3735CREATE_FACTORY(TestEntity);
    3836
    39 
     37float i=0;
     38bool state=1;
    4039
    4140/**
     
    8685}
    8786
     87void TestEntity::draw() const
     88{
     89//   if(!mediaLoaded)
     90//     false;
    8891
     92  glPushAttrib(GL_ENABLE_BIT);
     93  glDisable(GL_LIGHTING);
     94//   glDisable(GL_BLEND);
     95//
     96//   glEnable(GL_TEXTURE_2D);
     97//   glBindTexture(GL_TEXTURE_2D, media_container->getFrameTexture(counter));
     98
     99  glPushMatrix();
     100 /* glTranslatef (this->getAbsCoor ().x,
     101                this->getAbsCoor ().y,
     102                this->getAbsCoor ().z);
     103  glRotatef(axis, 0.0f, 1.0f, 0.0f);*/
     104//PRINTF(0)("axis: %f\n", axis);
     105glEnable(GL_BLEND);     // Turn Blending On
     106 
     107
     108
     109glColor4f(0, 0, 0, i);
     110
     111  glBegin(GL_QUADS);
     112    glVertex3f(-1.0f, -100.0f, -100.0f);
     113//     glTexCoord2f(1.0f, 1.0f);
     114    glVertex3f(-1.0f, -100.0f, 100.0f);
     115//     glTexCoord2f(0.0f, 1.0f);
     116    glVertex3f(-1.0f, 100.0f, 100.0f);
     117//     glTexCoord2f(0.0f, 0.0f);
     118    glVertex3f(-1.0f, 100.0f, -100.0f);
     119//     glTexCoord2f(1.0f, 0.0f);
     120
     121  glEnd();
     122
     123 // glPopMatrix();
     124 // glPopAttrib();
     125}
    89126
    90127/**
     
    93130void TestEntity::tick (float time)
    94131{
     132if (state==0)
     133i=0;
     134else
     135i=i+0.005;
     136
     137
    95138
    96139
     
    98141
    99142
    100 /**
    101  *
    102  */
    103 void TestEntity::draw() const
    104 {
    105 
    106 }
    107 
    108 
    109 
    110 
     143//void TestEntity::changeState (bool sta)
     144//{
     145//state=sta;
     146//}
Note: See TracChangeset for help on using the changeset viewer.