Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7871 in orxonox.OLD


Ignore:
Timestamp:
May 26, 2006, 1:39:33 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: Element2D is better updated (after PNode :)

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/graphics_engine.cc

    r7868 r7871  
    5656
    5757/**
    58  * standard constructor
     58 * @brief standard constructor
    5959 */
    6060GraphicsEngine::GraphicsEngine ()
     
    8484
    8585/**
    86  * The Pointer to this GraphicsEngine
    87 */
     86 * @brief The Pointer to this GraphicsEngine
     87 */
    8888GraphicsEngine* GraphicsEngine::singletonRef = NULL;
    8989
    9090/**
    91  * destructs the graphicsEngine.
     91 * @brief destructs the graphicsEngine.
    9292*/
    9393GraphicsEngine::~GraphicsEngine ()
     
    110110
    111111/**
    112  * loads the GraphicsEngine Specific Parameters.
     112 * @brief loads the GraphicsEngine Specific Parameters.
    113113 * @param root: the XML-Element to load the Data From
    114114 */
     
    138138
    139139/**
    140  * initializes the GraphicsEngine with default settings.
     140 * @brief initializes the GraphicsEngine with default settings.
    141141 */
    142142int GraphicsEngine::init()
     
    148148
    149149/**
    150  * loads the GraphicsEngine's settings from a given ini-file and section
     150 * @brief loads the GraphicsEngine's settings from a given ini-file and section
    151151 * @returns nothing usefull
    152152 */
     
    191191
    192192/**
    193  * initializes the Video for openGL.
     193 * @brief initializes the Video for openGL.
    194194 *
    195195 * This has to be done only once when starting orxonox.
     
    241241
    242242/**
    243  * sets the Window Captions and the Name of the icon.
     243 * @brief sets the Window Captions and the Name of the icon.
    244244 * @param windowName The name of the Window
    245245 * @param icon The name of the Icon on the Disc
     
    261261
    262262/**
    263  * Sets the GL-attributes
     263 * @brief Sets the GL-attributes
    264264 */
    265265int GraphicsEngine::setGLattribs()
     
    289289
    290290/**
    291  * grabs the Hardware Specifics
     291 * @brief grabs the Hardware Specifics
     292 *
    292293 * checks for all the different HW-types
    293294 */
     
    335336
    336337/**
    337  * sets the Resolution of the Screen to display the Graphics to.
     338 * @brief sets the Resolution of the Screen to display the Graphics to.
    338339 * @param width The width of the window
    339340 * @param height The height of the window
     
    378379
    379380/**
    380  * sets Fullscreen mode
     381 * @brief sets Fullscreen mode
    381382 * @param fullscreen true if fullscreen, false if windowed
    382383*/
     
    391392
    392393/**
    393  * sets the background color
     394 * @brief sets the background color
    394395 * @param red the red part of the background
    395396 * @param blue the blue part of the background
     
    403404
    404405/**
    405  * Signalhandler, for when the resolution has changed
     406 * @brief Signalhandler, for when the resolution has changed
    406407 * @param resizeInfo SDL information about the size of the new screen size
    407408 */
     
    414415
    415416/**
    416  *  entering 2D Mode
    417 
    418    this is a GL-Projection-mode, that is orthogonal, for placing the font in fron of everything else
    419 */
     417 * @brief entering 2D Mode
     418 * this is a GL-Projection-mode, that is orthogonal, for placing the font in fron of everything else
     419 */
    420420void GraphicsEngine::enter2DMode()
    421421{
     
    442442
    443443/**
    444  * leaves the 2DMode again also @see Font::enter2DMode()
     444 * @brief leaves the 2DMode again also @see Font::enter2DMode()
    445445 */
    446446void GraphicsEngine::leave2DMode()
     
    456456}
    457457
     458/**
     459 * @brief changes to wireframe-mode.
     460 */
    458461void GraphicsEngine::wireframe()
    459462{
     
    462465
    463466/**
    464  * stores the GL_matrices
     467 * @brief stores the GL_matrices
    465468 */
    466469void GraphicsEngine::storeMatrices()
     
    481484
    482485/**
    483  * outputs all the Fullscreen modes.
     486 * @brief outputs all the Fullscreen modes.
    484487 */
    485488void GraphicsEngine::listModes()
     
    510513
    511514/**
    512  * checks wether a certain extension is availiable
     515 * @brief checks wether a certain extension is availiable
    513516 * @param extension the Extension to check for (ex. GL_ARB_texture_env_dot3)
    514517 * @return true if it is, false otherwise
     
    523526
    524527/**
    525  * updates everything that is to be updated in the GraphicsEngine
     528 * @brief updates everything that is to be updated in the GraphicsEngine
    526529 */
    527530void GraphicsEngine::update(float dt)
     
    532535
    533536/**
    534  * ticks the Text
     537 * @brief ticks the Text
    535538 * @param dt the time passed
    536539 */
     
    568571}
    569572
     573/**
     574 * @brief draws all Elements that should be displayed on the Background.
     575 */
    570576void GraphicsEngine::drawBackgroundElements() const
    571577{
     
    592598
    593599/**
    594  * displays the Frames per second
     600 * @brief displays the Frames per second
    595601 * @param display if the text should be displayed
    596602*/
     
    639645
    640646/**
    641   processes the events for the GraphicsEngine class
    642 * @param the event to handle
     647 * @brief processes the events for the GraphicsEngine class
     648 * @param the event to handle
    643649 */
    644650void GraphicsEngine::process(const Event &event)
  • trunk/src/lib/graphics/render2D/element_2d.cc

    r7846 r7871  
    890890      }
    891891
     892      /// TODO this should be done on the new Projection Matrix.
    892893      GLdouble projectPos[3] = {0.0, 0.0, 0.0};
    893894      gluProject(this->bindNode->getAbsCoor().x,
  • trunk/src/story_entities/game_world.cc

    r7840 r7871  
    402402void GameWorld::update()
    403403{
    404   GraphicsEngine::getInstance()->update(this->dtS);
    405404  PNode::getNullParent()->updateNode (this->dtS);
    406405  OrxSound::SoundEngine::getInstance()->update();
     406  GraphicsEngine::getInstance()->update(this->dtS);
    407407}
    408408
Note: See TracChangeset for help on using the changeset viewer.