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

#include <sdlvideowrapper.hpp>

Collaboration diagram for SDLUtil::VideoWrapper:

Public Member Functions

 VideoWrapper (SDL_Window *window, osg::ref_ptr< osgViewer::Viewer > viewer)
 
 ~VideoWrapper ()
 
void setSyncToVBlank (bool sync)
 
void setGammaContrast (float gamma, float contrast)
 
void setVideoMode (int width, int height, bool fullscreen, bool windowBorder)
 

Private Attributes

SDL_Window * mWindow
 
osg::ref_ptr< osgViewer::Viewer > mViewer
 
float mGamma
 
float mContrast
 
bool mHasSetGammaContrast
 
Uint16 mOldSystemGammaRamp [256 *3]
 

Constructor & Destructor Documentation

SDLUtil::VideoWrapper::VideoWrapper ( SDL_Window *  window,
osg::ref_ptr< osgViewer::Viewer >  viewer 
)
SDLUtil::VideoWrapper::~VideoWrapper ( )

Member Function Documentation

void SDLUtil::VideoWrapper::setGammaContrast ( float  gamma,
float  contrast 
)

Here is the caller graph for this function:

void SDLUtil::VideoWrapper::setSyncToVBlank ( bool  sync)

Here is the caller graph for this function:

void SDLUtil::VideoWrapper::setVideoMode ( int  width,
int  height,
bool  fullscreen,
bool  windowBorder 
)

Here is the caller graph for this function:

Member Data Documentation

float SDLUtil::VideoWrapper::mContrast
private
float SDLUtil::VideoWrapper::mGamma
private
bool SDLUtil::VideoWrapper::mHasSetGammaContrast
private
Uint16 SDLUtil::VideoWrapper::mOldSystemGammaRamp[256 *3]
private
osg::ref_ptr<osgViewer::Viewer> SDLUtil::VideoWrapper::mViewer
private
SDL_Window* SDLUtil::VideoWrapper::mWindow
private

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