|
OpenWalnut
1.4.0
|
Small class used for querying glGet info during rendering. More...
#include <WGEViewer.h>
Inheritance diagram for WGEViewer::QueryCallback:Public Member Functions | |
| QueryCallback (osg::ref_ptr< WGECamera > camera, WBoolFlag::SPtr run) | |
| Constructor. More... | |
| virtual | ~QueryCallback () |
| Destructor. More... | |
| virtual void | operator() (osg::RenderInfo &renderInfo) const |
| Query operator. More... | |
| std::string | getVendor () const |
| Returns the queried vendor string. More... | |
Protected Attributes | |
| std::string | m_vendor |
| The vendor string. More... | |
| WBoolFlag::SPtr | m_run |
| True if callback was run once. More... | |
| osg::ref_ptr< WGECamera > | m_camera |
| The camera to which this was connected. More... | |
Small class used for querying glGet info during rendering.
Definition at line 348 of file WGEViewer.h.
| WGEViewer::QueryCallback::QueryCallback | ( | osg::ref_ptr< WGECamera > | camera, |
| WBoolFlag::SPtr | run | ||
| ) |
Constructor.
Automatically de-registers from camera after one run.
| camera | the cam to which this was registered |
| run | notifies the flag when run. |
Definition at line 290 of file WGEViewer.cpp.
|
virtual |
Destructor.
Definition at line 298 of file WGEViewer.cpp.
| std::string WGEViewer::QueryCallback::getVendor | ( | ) | const |
|
virtual |
Query operator.
| renderInfo | render info object |
Definition at line 303 of file WGEViewer.cpp.
|
protected |
The camera to which this was connected.
Definition at line 392 of file WGEViewer.h.
|
protected |
True if callback was run once.
Definition at line 387 of file WGEViewer.h.
|
mutableprotected |
The vendor string.
Definition at line 382 of file WGEViewer.h.
1.8.7