OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
osg::GraphicsContext::WindowingSystemInterface Struct Referenceabstract

#include <GraphicsContext.h>

Inheritance diagram for osg::GraphicsContext::WindowingSystemInterface:
Inheritance graph
[legend]
Collaboration diagram for osg::GraphicsContext::WindowingSystemInterface:
Collaboration graph
[legend]

Public Member Functions

virtual unsigned int getNumScreens (const ScreenIdentifier &screenIdentifier=ScreenIdentifier())=0
 
virtual void getScreenSettings (const ScreenIdentifier &screenIdentifier, ScreenSettings &resolution)=0
 
virtual bool setScreenSettings (const ScreenIdentifier &, const ScreenSettings &)
 
virtual void enumerateScreenSettings (const ScreenIdentifier &screenIdentifier, ScreenSettingsList &resolutionList)=0
 
virtual void setDisplaySettings (DisplaySettings *)
 
virtual osg::DisplaySettingsgetDisplaySettings () const
 
virtual GraphicsContextcreateGraphicsContext (Traits *traits)=0
 
virtual ~WindowingSystemInterface ()
 
void getScreenResolution (const ScreenIdentifier &screenIdentifier, unsigned int &width, unsigned int &height)
 
bool setScreenResolution (const ScreenIdentifier &screenIdentifier, unsigned int width, unsigned int height)
 
bool setScreenRefreshRate (const ScreenIdentifier &screenIdentifier, double refreshRate)
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 
bool getThreadSafeRefUnref () const
 
OpenThreads::MutexgetRefMutex () const
 
int ref () const
 
int unref () const
 
int unref_nodelete () const
 
int referenceCount () const
 
ObserverSetgetObserverSet () const
 
ObserverSetgetOrCreateObserverSet () const
 
void addObserver (Observer *observer) const
 
void removeObserver (Observer *observer) const
 

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 
static bool getThreadSafeReferenceCounting ()
 
static void setDeleteHandler (DeleteHandler *handler)
 
static DeleteHandlergetDeleteHandler ()
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Detailed Description

Callback to be implemented to provide access to Windowing API's ability to create Windows/pbuffers.

Definition at line 169 of file GraphicsContext.h.

Constructor & Destructor Documentation

virtual osg::GraphicsContext::WindowingSystemInterface::~WindowingSystemInterface ( )
inlinevirtual

Definition at line 185 of file GraphicsContext.h.

Member Function Documentation

virtual GraphicsContext* osg::GraphicsContext::WindowingSystemInterface::createGraphicsContext ( Traits traits)
pure virtual
virtual void osg::GraphicsContext::WindowingSystemInterface::enumerateScreenSettings ( const ScreenIdentifier screenIdentifier,
ScreenSettingsList resolutionList 
)
pure virtual
virtual osg::DisplaySettings* osg::GraphicsContext::WindowingSystemInterface::getDisplaySettings ( ) const
inlinevirtual

Definition at line 181 of file GraphicsContext.h.

virtual unsigned int osg::GraphicsContext::WindowingSystemInterface::getNumScreens ( const ScreenIdentifier screenIdentifier = ScreenIdentifier())
pure virtual
void osg::GraphicsContext::WindowingSystemInterface::getScreenResolution ( const ScreenIdentifier screenIdentifier,
unsigned int &  width,
unsigned int &  height 
)
inline

Gets screen resolution without using the ScreenResolution structure.

Deprecated:
Provided only for backward compatibility.

Definition at line 190 of file GraphicsContext.h.

virtual void osg::GraphicsContext::WindowingSystemInterface::getScreenSettings ( const ScreenIdentifier screenIdentifier,
ScreenSettings resolution 
)
pure virtual
virtual void osg::GraphicsContext::WindowingSystemInterface::setDisplaySettings ( DisplaySettings )
inlinevirtual

Definition at line 179 of file GraphicsContext.h.

bool osg::GraphicsContext::WindowingSystemInterface::setScreenRefreshRate ( const ScreenIdentifier screenIdentifier,
double  refreshRate 
)
inline
Deprecated:
Provided only for backward compatibility.

Definition at line 206 of file GraphicsContext.h.

bool osg::GraphicsContext::WindowingSystemInterface::setScreenResolution ( const ScreenIdentifier screenIdentifier,
unsigned int  width,
unsigned int  height 
)
inline

Sets screen resolution without using the ScreenSettings structure.

Deprecated:
Provided only for backward compatibility.

Definition at line 200 of file GraphicsContext.h.

virtual bool osg::GraphicsContext::WindowingSystemInterface::setScreenSettings ( const ScreenIdentifier ,
const ScreenSettings  
)
inlinevirtual

Definition at line 175 of file GraphicsContext.h.


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