|
FlightGear next
|
Adapter from windows system / graphics context management API to functions used by flightgear. More...
#include <WindowSystemAdapter.hxx>
Inherits osg::Referenced.
Public Member Functions | |
| WindowSystemAdapter () | |
| virtual | ~WindowSystemAdapter () |
| GraphicsWindow * | registerWindow (osg::GraphicsContext *gc, const std::string &windowName) |
| Register a window, assigning it an ID. | |
| GraphicsWindow * | findWindow (const std::string &name) const |
| Find a window by name. | |
| GraphicsWindow * | getGUIWindow () const |
| Get the first window marked as GUI (there should only be one). | |
Static Public Member Functions | |
| static WindowSystemAdapter * | getWSA () |
| Get the global WindowSystemAdapter. | |
| static void | setWSA (WindowSystemAdapter *wsa) |
| Set the global adapter. | |
Public Attributes | |
| WindowVector | windows |
| Vector of all the registered windows. | |
Protected Attributes | |
| int | _nextWindowID |
Static Protected Attributes | |
| static osg::ref_ptr< WindowSystemAdapter > | _wsa |
Adapter from windows system / graphics context management API to functions used by flightgear.
This papers over the difference between osgViewer::Viewer, which handles multiple windows, graphics threads, etc., and the embedded viewer used with GLUT and SDL.
Definition at line 98 of file WindowSystemAdapter.hxx.
| flightgear::WindowSystemAdapter::WindowSystemAdapter | ( | ) |
Definition at line 43 of file WindowSystemAdapter.cxx.
|
inlinevirtual |
Definition at line 102 of file WindowSystemAdapter.hxx.
| GraphicsWindow * flightgear::WindowSystemAdapter::findWindow | ( | const std::string & | name | ) | const |
Find a window by name.
| name | the window name |
Definition at line 58 of file WindowSystemAdapter.cxx.
| GraphicsWindow * flightgear::WindowSystemAdapter::getGUIWindow | ( | ) | const |
Get the first window marked as GUI (there should only be one).
Definition at line 70 of file WindowSystemAdapter.cxx.
|
inlinestatic |
Get the global WindowSystemAdapter.
Definition at line 126 of file WindowSystemAdapter.hxx.
| GraphicsWindow * flightgear::WindowSystemAdapter::registerWindow | ( | osg::GraphicsContext * | gc, |
| const std::string & | windowName ) |
Register a window, assigning it an ID.
| gc | graphics context |
| windowName | internal name (not displayed) |
Definition at line 49 of file WindowSystemAdapter.cxx.
|
inlinestatic |
Set the global adapter.
| wsa | the adapter |
Definition at line 130 of file WindowSystemAdapter.hxx.
|
protected |
Definition at line 132 of file WindowSystemAdapter.hxx.
|
staticprotected |
Definition at line 133 of file WindowSystemAdapter.hxx.
| WindowVector flightgear::WindowSystemAdapter::windows |
Vector of all the registered windows.
Definition at line 105 of file WindowSystemAdapter.hxx.