- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UXSDLDriver Class Reference

A video driver which uses SDL for windowing. More...

#include <uxsdldriver.hpp>

Inheritance diagram for ufo::UXSDLDriver:

ufo::UVideoDriver ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

 UXSDLDriver (const char *sdlPath="")
virtual bool init ()
virtual bool isInitialized ()
virtual void quit ()
virtual std::string getName ()
virtual void pumpEvents ()
virtual UVideoDevicecreateVideoDevice ()
 UFO_SDL_PROC (SDL_Surface *, SDL_SetVideoMode,(int, int, int, Uint32)) UFO_SDL_PROC(SDL_Surface *
void UFO_SDL_PROC (int, SDL_Init,(Uint32 flags)) UFO_SDL_PROC(int
void void UFO_SDL_PROC (void, SDL_PumpEvents,(void)) UFO_SDL_PROC(int
void void SDL_Event Uint32 UFO_SDL_PROC (Uint8, SDL_EventState,(Uint8, int)) UFO_SDL_PROC(char *
void void SDL_Event Uint32
void 
UFO_SDL_PROC (int, SDL_GetWMInfo,(SDL_SysWMinfo *)) UFO_SDL_PROC(void
void void SDL_Event Uint32
void const char const char * 
UFO_SDL_PROC (void, SDL_WM_GetCaption,(char **, char **)) UFO_SDL_PROC(void
void void SDL_Event Uint32
void const char const char
void 
UFO_SDL_PROC (SDLMod, SDL_GetModState,(void)) UFO_SDL_PROC(Uint8
void void SDL_Event Uint32
void const char const char
void int int * 
UFO_SDL_PROC (int, SDL_EnableUNICODE,(int)) UFO_SDL_PROC(int
void void SDL_Event Uint32
void const char const char
void int int int bool 
isValid () const
void * getProcAddress (const char *proc)

Static Public Member Functions

void pushSDLEvents (SDL_Event *events, int numEvents)
void pushSDLEvents (UXContext *uxcontext, SDL_Event *events, int numEvents)
UPluginBasecreatePlugin ()
void destroyPlugin (UPluginBase *plugin)

Public Attributes

 SDL_GetVideoSurface
void SDL_Quit
void void SDL_PeepEvents
void void SDL_Event int
void void SDL_Event SDL_eventaction
void void SDL_Event Uint32 SDL_GetError
void void SDL_Event Uint32
void 
SDL_WM_SetCaption
void void SDL_Event Uint32
void const char const char * 
SDL_GL_SwapBuffers
void void SDL_Event Uint32
void const char const char
void 
SDL_GetMouseState
void void SDL_Event Uint32
void const char const char
void int int * 
SDL_EnableKeyRepeat
void void SDL_Event Uint32
void const char const char
void int int 
int

Detailed Description

A video driver which uses SDL for windowing.

Author:
Johannes Schmidt


Member Function Documentation

virtual UVideoDevice* ufo::UXSDLDriver::createVideoDevice  )  [virtual]
 

Creates a video device (window).

Returns:
A video device which is used by UXFrame or Null on failure.

Implements ufo::UVideoDriver.

virtual std::string ufo::UXSDLDriver::getName  )  [virtual]
 

Returns:
The name describing this video driver. Should be the same used via env var UFO_VIDEO_DRIVER.

Implements ufo::UVideoDriver.

virtual bool ufo::UXSDLDriver::init  )  [virtual]
 

Initializes the video driver, loads necessary native drivers.

Returns:
True on sucess

Implements ufo::UVideoDriver.

virtual bool ufo::UXSDLDriver::isInitialized  )  [virtual]
 

Returns:
True if initialization was succesful.

Implements ufo::UVideoDriver.

virtual void ufo::UXSDLDriver::pumpEvents  )  [virtual]
 

Gathers all system events and pumps them to the UFO event queue (UXDisplay).

Implements ufo::UVideoDriver.

void ufo::UXSDLDriver::pushSDLEvents UXContext uxcontext,
SDL_Event *  events,
int  numEvents
[static]
 

Pushes the given SDL events to the given UX context.

void ufo::UXSDLDriver::pushSDLEvents SDL_Event *  events,
int  numEvents
[static]
 

Pushes the given SDL events to all UFO contexts registered at the default display.

virtual void ufo::UXSDLDriver::quit  )  [virtual]
 

Purges all loaded system resources and deinits the video driver.

Implements ufo::UVideoDriver.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt