OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SDLUtil::GraphicsWindowSDL2 Class Reference

#include <sdlgraphicswindow.hpp>

Inheritance diagram for SDLUtil::GraphicsWindowSDL2:
Collaboration diagram for SDLUtil::GraphicsWindowSDL2:

Classes

struct  WindowData
 

Public Member Functions

 GraphicsWindowSDL2 (osg::GraphicsContext::Traits *traits)
 
virtual bool isSameKindAs (const Object *object) const
 
virtual const char * libraryName () const
 
virtual const char * className () const
 
virtual bool valid () const
 
virtual bool realizeImplementation ()
 
virtual bool isRealizedImplementation () const
 
virtual void closeImplementation ()
 
virtual bool makeCurrentImplementation ()
 
virtual bool releaseContextImplementation ()
 
virtual void swapBuffersImplementation ()
 
virtual void setSyncToVBlank (bool on)
 
virtual bool setWindowDecorationImplementation (bool flag)
 
virtual void raiseWindow ()
 
virtual bool setWindowRectangleImplementation (int x, int y, int width, int height)
 
virtual void setWindowName (const std::string &name)
 
virtual void setCursor (MouseCursor cursor)
 
virtual void grabFocus ()
 
virtual void grabFocusIfPointerInWindow ()
 

Private Member Functions

void init ()
 
virtual ~GraphicsWindowSDL2 ()
 

Private Attributes

SDL_Window * mWindow
 
SDL_GLContext mContext
 
bool mValid
 
bool mRealized
 
bool mOwnsWindow
 

Constructor & Destructor Documentation

SDLUtil::GraphicsWindowSDL2::~GraphicsWindowSDL2 ( )
privatevirtual
SDLUtil::GraphicsWindowSDL2::GraphicsWindowSDL2 ( osg::GraphicsContext::Traits *  traits)

Here is the call graph for this function:

Member Function Documentation

virtual const char* SDLUtil::GraphicsWindowSDL2::className ( ) const
inlinevirtual
void SDLUtil::GraphicsWindowSDL2::closeImplementation ( )
virtual

Close the graphics context.

virtual void SDLUtil::GraphicsWindowSDL2::grabFocus ( )
inlinevirtual

Get focus.

virtual void SDLUtil::GraphicsWindowSDL2::grabFocusIfPointerInWindow ( )
inlinevirtual

Get focus on if the pointer is in this window.

void SDLUtil::GraphicsWindowSDL2::init ( )
private

Here is the caller graph for this function:

virtual bool SDLUtil::GraphicsWindowSDL2::isRealizedImplementation ( ) const
inlinevirtual

Return true if the graphics context has been realised and is ready to use.

virtual bool SDLUtil::GraphicsWindowSDL2::isSameKindAs ( const Object *  object) const
inlinevirtual
virtual const char* SDLUtil::GraphicsWindowSDL2::libraryName ( ) const
inlinevirtual
bool SDLUtil::GraphicsWindowSDL2::makeCurrentImplementation ( )
virtual

Make this graphics context current.

void SDLUtil::GraphicsWindowSDL2::raiseWindow ( )
virtual

Raise specified window

bool SDLUtil::GraphicsWindowSDL2::realizeImplementation ( )
virtual

Realise the GraphicsContext.

Here is the call graph for this function:

bool SDLUtil::GraphicsWindowSDL2::releaseContextImplementation ( )
virtual

Release the graphics context.

void SDLUtil::GraphicsWindowSDL2::setCursor ( MouseCursor  cursor)
virtual

Set mouse cursor to a specific shape.

void SDLUtil::GraphicsWindowSDL2::setSyncToVBlank ( bool  on)
virtual

Set sync-to-vblank.

bool SDLUtil::GraphicsWindowSDL2::setWindowDecorationImplementation ( bool  flag)
virtual

Set Window decoration.

void SDLUtil::GraphicsWindowSDL2::setWindowName ( const std::string &  name)
virtual

Set the name of the window

bool SDLUtil::GraphicsWindowSDL2::setWindowRectangleImplementation ( int  x,
int  y,
int  width,
int  height 
)
virtual

Set the window's position and size.

void SDLUtil::GraphicsWindowSDL2::swapBuffersImplementation ( )
virtual

Swap the front and back buffers.

virtual bool SDLUtil::GraphicsWindowSDL2::valid ( ) const
inlinevirtual

Here is the caller graph for this function:

Member Data Documentation

SDL_GLContext SDLUtil::GraphicsWindowSDL2::mContext
private
bool SDLUtil::GraphicsWindowSDL2::mOwnsWindow
private
bool SDLUtil::GraphicsWindowSDL2::mRealized
private
bool SDLUtil::GraphicsWindowSDL2::mValid
private
SDL_Window* SDLUtil::GraphicsWindowSDL2::mWindow
private

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