Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4831 in orxonox.OLD for orxonox/trunk/src/lib


Ignore:
Timestamp:
Jul 11, 2005, 5:44:41 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: hiding the mouse through the graphicsEngine

Location:
orxonox/trunk/src/lib/graphics
Files:
2 edited

Legend:

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

    r4830 r4831  
    7575    return -1;
    7676  this->initVideo(640, 480, 16);
    77   this->isInit = true;
    7877}
    7978
  • orxonox/trunk/src/lib/graphics/graphics_engine.h

    r4817 r4831  
    3434
    3535    void setWindowName(const char* windowName, const char* icon);
    36     int setGLattribs();
     36
    3737    int setResolution(int width, int height, int bpp);
    3838    void setFullscreen(bool fullscreen = false);
    3939    static void setBackgroundColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha = 1.0);
     40
    4041
    4142    /** \returns the x resolution */
     
    4748
    4849    int resolutionChanged(const SDL_ResizeEvent& resizeInfo);
     50
     51
     52    static void showMouse(bool show) { (show)?SDL_ShowCursor(SDL_ENABLE):SDL_ShowCursor(SDL_DISABLE); };
     53    static bool isMouseVisible() {return (SDL_ShowCursor(SDL_QUERY) == SDL_ENABLE)?true:false; };
     54    static void stealWMEvents(bool steal) { (steal)?SDL_WM_GrabInput(SDL_GRAB_ON):SDL_WM_GrabInput(SDL_GRAB_OFF); };
    4955
    5056    static void enter2DMode();
     
    6975    GraphicsEngine();
    7076    int initVideo(unsigned int resX, unsigned int resY, unsigned int bbp);
     77    int setGLattribs();
    7178
    7279  public:
Note: See TracChangeset for help on using the changeset viewer.