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

ufo::UXGLXDriver Class Reference

A video driver which uses GLX to create video devices. More...

#include <uxglxdriver.hpp>

Inheritance diagram for ufo::UXGLXDriver:

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

Public Member Functions

virtual bool init ()
virtual bool isInitialized ()
virtual void quit ()
virtual std::string getName ()
virtual void pumpEvents ()
virtual UVideoDevicecreateVideoDevice ()
bool isValid () const
 UFO_GLX_PROC (Bool, glXMakeCurrent,(Display *dpy, GLXDrawable drawable, GLXContext ctx)) UFO_GLX_PROC(Bool
Display int int *eventBase UFO_GLX_PROC (void, glXSwapBuffers,(Display *dpy, GLXDrawable drawable)) UFO_GLX_PROC(XVisualInfo *
Display int int *eventBase
Display int int *attribList 
UFO_GLX_PROC (void, glXDestroyContext,(Display *dpy, GLXContext ctx)) UFO_GLX_PROC(GLXContext
Display * getX11Display () const
Window getRootWindow () const
Atom * getDeleteWindowAtom ()
UXContextgetContextFromWindow (int window) const
void initKeymap ()
void pushXEvent (UXContext *context, const XEvent &event)
UKeyCode_t mapX11Keycode (const XKeyEvent &xkey)
wchar_t mapX11Unicode (const XKeyEvent &xkey)
UMod::Modifier mapX11Modifiers (int modifiers)

Static Public Member Functions

UPluginBasecreatePlugin ()
void destroyPlugin (UPluginBase *plugin)

Public Attributes

 glXQueryExtension
Display * dpy
Display int * errorBase
Display int int *eventBase glXChooseVisual
Display int int *eventBase
Display * 
dpy
Display int int *eventBase
Display int 
screen
Display int int *eventBase
Display int int *attribList 
glXCreateContext
Display int int *eventBase
Display int int *attribList
Display * 
dpy
Display int int *eventBase
Display int int *attribList
Display XVisualInfo * 
vis
Display int int *eventBase
Display int int *attribList
Display XVisualInfo GLXContext 
shareList

Protected Member Functions

void destroyed (UXGLXDevice *device)

Detailed Description

A video driver which uses GLX to create video devices.

See also:
UXGLXVideoDevice
Author:
Johannes Schmidt


Member Function Documentation

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

Creates a video device (window).

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

Implements ufo::UVideoDriver.

void ufo::UXGLXDriver::destroyed UXGLXDevice device  )  [protected]
 

Removes device from device list.

virtual std::string ufo::UXGLXDriver::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::UXGLXDriver::init  )  [virtual]
 

Initializes the video driver, loads necessary native drivers.

Returns:
True on sucess

Implements ufo::UVideoDriver.

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

Returns:
True if initialization was succesful.

Implements ufo::UVideoDriver.

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

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

Implements ufo::UVideoDriver.

virtual void ufo::UXGLXDriver::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