Changed the return types of makeCurrent to bool, and added a bool GraphicsContext::releaseContext method
along with implementations in osgViewer.
This commit is contained in:
@@ -150,6 +150,20 @@ class OSGGA_EXPORT EventQueue : public osg::Referenced
|
||||
void keyRelease(int key, double time);
|
||||
|
||||
|
||||
/** Method for adapting close window events.*/
|
||||
void closeWindow() { closeWindow(getTime()); }
|
||||
|
||||
/** Method for adapting close window event with specified event time.*/
|
||||
void closeWindow(double time);
|
||||
|
||||
|
||||
/** Method for adapting application quit events.*/
|
||||
void quitApplication() { quitApplication(getTime()); }
|
||||
|
||||
/** Method for adapting application quit events with specified event time.*/
|
||||
void quitApplication(double time);
|
||||
|
||||
|
||||
/** Method for adapting frame events.*/
|
||||
void frame(double time);
|
||||
|
||||
|
||||
@@ -53,7 +53,9 @@ public:
|
||||
SCROLL,
|
||||
PEN_PRESSURE,
|
||||
PEN_PROXIMITY_ENTER,
|
||||
PEN_PROXIMITY_LEAVE
|
||||
PEN_PROXIMITY_LEAVE,
|
||||
CLOSE_WINDOW,
|
||||
QUIT_APPLICATION
|
||||
};
|
||||
|
||||
enum KeySymbol
|
||||
|
||||
Reference in New Issue
Block a user