X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Ffg_os.hxx;h=74d2e468bc28b09d99d6b235c1018ed890736648;hb=c053de6b4c4c3a9b22648d3c7e798cfd087887c7;hp=c12e79b7bd0d9aa27d4a662139a5c7ff18ce65ad;hpb=580ebf637b991bbc5bb6b9632e8e62845d23ea43;p=flightgear.git diff --git a/src/Main/fg_os.hxx b/src/Main/fg_os.hxx index c12e79b7b..74d2e468b 100644 --- a/src/Main/fg_os.hxx +++ b/src/Main/fg_os.hxx @@ -24,7 +24,16 @@ enum { MOUSE_CURSOR_NONE, MOUSE_CURSOR_POINTER, MOUSE_CURSOR_WAIT, MOUSE_CURSOR_CROSSHAIR, - MOUSE_CURSOR_LEFTRIGHT }; + MOUSE_CURSOR_LEFTRIGHT, + MOUSE_CURSOR_TOPSIDE, + MOUSE_CURSOR_BOTTOMSIDE, + MOUSE_CURSOR_LEFTSIDE, + MOUSE_CURSOR_RIGHTSIDE, + MOUSE_CURSOR_TOPLEFT, + MOUSE_CURSOR_TOPRIGHT, + MOUSE_CURSOR_BOTTOMLEFT, + MOUSE_CURSOR_BOTTOMRIGHT, +}; enum { KEYMOD_NONE = 0, KEYMOD_RELEASED = 1, // Not a mod key, indicates "up" action @@ -51,7 +60,7 @@ enum { KEYMOD_NONE = 0, void fgOSInit(int* argc, char** argv); void fgOSOpenWindow(bool stencil); void fgOSFullScreen(); -void fgOSMainLoop(); +int fgOSMainLoop(); void fgOSExit(int code); void fgSetMouseCursor(int cursor); @@ -60,8 +69,6 @@ void fgWarpMouse(int x, int y); int fgGetKeyModifiers(); -void fgRequestRedraw(); - // // Callbacks and registration API // @@ -84,18 +91,4 @@ void fgRegisterWindowResizeHandler(fgWindowResizeHandler func); void fgRegisterKeyHandler(fgKeyHandler func); void fgRegisterMouseClickHandler(fgMouseClickHandler func); void fgRegisterMouseMotionHandler(fgMouseMotionHandler func); - -bool fgOSIsMainCamera(const osg::Camera* camera); -bool fgOSIsMainContext(const osg::GraphicsContext* context); - -/** Get graphics context of the main camera. This is the principal - * window in multi-window configurations, or the only window in an - * embedded configuration. The GUI will be added to this context. - */ -osg::GraphicsContext* fgOSGetMainContext(); - - - - - #endif // _FG_OS_HXX