Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 17, 2005, 12:41:57 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: GraphicsEngine now stores the glMatrices, when transforming into 2D-mode

File:
1 edited

Legend:

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

    r3790 r3844  
    174174void GraphicsEngine::enter2DMode(void)
    175175{
     176  GraphicsEngine::storeMatrices();
    176177  SDL_Surface *screen = SDL_GetVideoSurface();
    177178 
     
    218219}
    219220
     221/**
     222   \brief stores the GL_matrices
     223*/
     224void GraphicsEngine::storeMatrices(void)
     225{
     226  glGetDoublev(GL_PROJECTION_MATRIX, GraphicsEngine::projMat);
     227  glGetDoublev(GL_MODELVIEW_MATRIX, GraphicsEngine::modMat);
     228  glGetIntegerv(GL_VIEWPORT, GraphicsEngine::viewPort);
     229}
     230
     231//! the stored ModelView Matrix.
     232GLdouble GraphicsEngine::modMat[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
     233//! the stored Projection Matrix
     234GLdouble GraphicsEngine::projMat[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
     235//! The ViewPort
     236GLint GraphicsEngine::viewPort[4] = {0,0,0,0};
    220237
    221238
Note: See TracChangeset for help on using the changeset viewer.