FlightGear next
flightgear::GraphicsWindow Class Reference

A window with a graphics context and an integer ID. More...

#include <WindowSystemAdapter.hxx>

Inherits osg::Referenced.

Public Types

enum  Flags { GUI = 1 }
 

Public Member Functions

 GraphicsWindow (osg::GraphicsContext *gc_, const std::string &name_, int id_, unsigned flags_=0)
 

Public Attributes

osg::ref_ptr< osg::GraphicsContext > gc
 The OSG graphics context for this window.
 
std::string name
 The window's internal name.
 
int id
 A unique ID for the window.
 
unsigned flags
 Flags for the window.
 

Detailed Description

A window with a graphics context and an integer ID.

Definition at line 40 of file WindowSystemAdapter.hxx.

Member Enumeration Documentation

◆ Flags

Enumerator
GUI 

The GUI (and 2D cockpit) will be drawn on this window.

Definition at line 57 of file WindowSystemAdapter.hxx.

Constructor & Destructor Documentation

◆ GraphicsWindow()

flightgear::GraphicsWindow::GraphicsWindow ( osg::GraphicsContext * gc_,
const std::string & name_,
int id_,
unsigned flags_ = 0 )
inline

Definition at line 43 of file WindowSystemAdapter.hxx.

Member Data Documentation

◆ flags

unsigned flightgear::GraphicsWindow::flags

Flags for the window.

Definition at line 62 of file WindowSystemAdapter.hxx.

◆ gc

osg::ref_ptr<osg::GraphicsContext> flightgear::GraphicsWindow::gc

The OSG graphics context for this window.

Definition at line 50 of file WindowSystemAdapter.hxx.

◆ id

int flightgear::GraphicsWindow::id

A unique ID for the window.

Definition at line 56 of file WindowSystemAdapter.hxx.

◆ name

std::string flightgear::GraphicsWindow::name

The window's internal name.

Definition at line 53 of file WindowSystemAdapter.hxx.


The documentation for this class was generated from the following file: