Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 9, 2004, 11:14:42 AM (21 years ago)
Author:
chris
Message:

orxonox/branches/chris: Messed with the Player class, added stuff here and there, debug world now creates a player and bind IO to it. Added some doxygen tags.

File:
1 edited

Legend:

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

    r2080 r2096  
    2121using namespace std;
    2222
     23/**
     24   \brief creates a Camera
     25   
     26   This standard constructor sets all parameters to zero
     27*/
    2328Camera::Camera ()
    2429{
     
    3035}
    3136
     37/**
     38   \brief default destructor
     39*/
    3240Camera::~Camera ()
    3341{
    3442}
    3543
     44/**
     45   \brief time based actualisation of camera parameters
     46   \param deltaT: The amount of time that has passed in milliseconds
     47   
     48   This is called by the World in every time_slice, use it to do fancy time dependant effects (such
     49   as smooth camera movement or swaying).
     50*/
    3651void Camera::time_slice (Uint32 deltaT)
    3752{
     
    3954}
    4055
     56/**
     57  \brief this calculates the location where the track wants the camera to be
     58   
     59        This refreshes the placement the camera should have according to the bound entity's position on the track.
     60*/
    4161void Camera::update_desired_place ()
    4262{
     
    5676}
    5777
     78/**
     79  \brief initialize rendering perspective according to this camera
     80   
     81        This is called immediately before the a rendering cycle starts, it sets all global rendering options as
     82        well as the GL_PROJECTION matrix according to the camera.
     83*/
    5884void Camera::apply ()
    5985{
     
    7399}
    74100
     101/**
     102  \brief set the camera position
     103  \param plc: The Placement to set the camera to
     104       
     105        This will set the actual and desired placement of the camera to plc
     106*/
    75107void Camera::jump (Placement* plc = NULL)
    76108{
     
    86118}
    87119
     120/**
     121  \brief bind the camera to an entity
     122  \param entity: The enitity to bind the camera to
     123       
     124        This sets the focus of the camera to the given entity. This means that it will use the given WorldEntity's
     125        Location and get_lookat() to determine the viewpoint the camera will render from.
     126        Note that you cannot bind a camera to a free entity.
     127*/
    88128void Camera::bind (WorldEntity* entity)
    89129{
Note: See TracChangeset for help on using the changeset viewer.