OpenSceneGraph  3.4.0
Public Member Functions | Public Attributes
osg::GraphicsContext::Traits Struct Reference

GraphicsContext Traits object provides the specification of what type of graphics context is required. More...

Inheritance diagram for osg::GraphicsContext::Traits:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Traits (DisplaySettings *ds=0)
bool getContextVersion (unsigned int &major, unsigned int &minor) const
 return true if glContextVersion is set in the form major.minor, and assign the appropriate major and minor values to the associated parameters.

Public Attributes

int x
int y
int width
int height
std::string windowName
bool windowDecoration
bool supportsResize
unsigned int red
unsigned int blue
unsigned int green
unsigned int alpha
unsigned int depth
unsigned int stencil
unsigned int sampleBuffers
unsigned int samples
bool pbuffer
bool quadBufferStereo
bool doubleBuffer
GLenum target
GLenum format
unsigned int level
unsigned int face
unsigned int mipMapGeneration
bool vsync
bool swapGroupEnabled
GLuint swapGroup
GLuint swapBarrier
bool useMultiThreadedOpenGLEngine
bool useCursor
std::string glContextVersion
unsigned int glContextFlags
unsigned int glContextProfileMask
osg::observer_ptr
< GraphicsContext
sharedContext
osg::ref_ptr< osg::ReferencedinheritedWindowData
bool setInheritedWindowPixelFormat
bool overrideRedirect
DisplaySettings::SwapMethod swapMethod

Detailed Description

GraphicsContext Traits object provides the specification of what type of graphics context is required.


Constructor & Destructor Documentation


Member Function Documentation

bool osg::GraphicsContext::Traits::getContextVersion ( unsigned int &  major,
unsigned int &  minor 
) const

return true if glContextVersion is set in the form major.minor, and assign the appropriate major and minor values to the associated parameters.


Member Data Documentation


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

osg logo
Generated at Tue Dec 8 2015 00:14:24 for the OpenSceneGraph by doxygen 1.7.6.1.