Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4832 in orxonox.OLD for orxonox/trunk/src/lib/graphics


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

orxonox/trunk: loadParams and timing

File:
1 edited

Legend:

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

    r4831 r4832  
    4949    int resolutionChanged(const SDL_ResizeEvent& resizeInfo);
    5050
    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; };
     51    /** @param show if The mouse-cursor should be visible */
     52    inline static void showMouse(bool show) { (show)?SDL_ShowCursor(SDL_ENABLE):SDL_ShowCursor(SDL_DISABLE); };
     53    /** @returns The Visinility of the mouse-cursor (true if visible, false if it is invisible) */
     54    static bool isMouseVisible() { return (SDL_ShowCursor(SDL_QUERY) == SDL_ENABLE)?true:false; };
     55    /** @param steal If the Winodow-Managers Events should be stolen to this app (steals the mouse, and all WM-clicks) */
    5456    static void stealWMEvents(bool steal) { (steal)?SDL_WM_GrabInput(SDL_GRAB_ON):SDL_WM_GrabInput(SDL_GRAB_OFF); };
     57    /** @returns true if Events are stolen from the WM, false if not. */
     58    static bool isStealingEvents() { if (SDL_GRAB_ON) return true; };
    5559
    5660    static void enter2DMode();
Note: See TracChangeset for help on using the changeset viewer.