Added mechanism for tracking when interactive images are being rendered to

enable their backends to only rendered them when they are actively being rendered
in the OpenGL window.
This commit is contained in:
Robert Osfield
2008-11-23 15:51:43 +00:00
parent 8264b31fa1
commit 5b15436935
7 changed files with 95 additions and 11 deletions

View File

@@ -311,11 +311,13 @@ class OSG_EXPORT Image : public Object
/** method for sending pointer events to images that are acting as front ends to interactive surfaces such as a vnc or browser window.*/
virtual void sendPointerEvent(int x, int y, int buttonMask) {};
virtual void sendPointerEvent(int x, int y, int buttonMask) {}
/** method for sending key events to images that are acting as front ends to interactive surfaces such as a vnc or browser window.*/
virtual void sendKeyEvent(int key, bool keyDown) {};
virtual void sendKeyEvent(int key, bool keyDown) {}
/** method for passing frame information to the custom Image classes, to be called only when objects associated with imagery are not culled.*/
virtual void setFrameLastRendered(const osg::FrameStamp* frameStamp) {}
protected :