Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2080 in orxonox.OLD for orxonox/branches/chris/src/camera.cc


Ignore:
Timestamp:
Jul 6, 2004, 10:29:05 PM (20 years ago)
Author:
chris
Message:

orxonox/branches/chris: Implemented basic track and spawning functionality. Added a function to convert a Rotation into a glmatrix. Implemented operator* in Rotation. Refined World, made World friend class of world_entity. Implemented camera functionality (can now be bound to the worldentity it should focus on).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/chris/src/camera.cc

    r2068 r2080  
    1212
    1313   ### File Specific:
    14    main-programmer: ...
     14   main-programmer: Christian Meyer
    1515   co-programmer: ...
    1616*/
     
    7070 
    7171  glMatrixMode (GL_MODELVIEW);
     72  glLoadIdentity ();
    7273}
    7374
     
    8788void Camera::bind (WorldEntity* entity)
    8889{
    89         if( entity != NULL) bound = entity;
     90        if( entity != NULL)
     91        {
     92                if( entity->bFree) printf("Cannot bind camera to free entity");
     93                else bound = entity;
     94        }
    9095}
Note: See TracChangeset for help on using the changeset viewer.