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

ufo::UXWGLDriver Class Reference

A video driver which uses Win32/WGL for windowing. More...

#include <uxwgldriver.hpp>

Inheritance diagram for ufo::UXWGLDriver:

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_WGL_PROC (BOOL, wglMakeCurrent,(HDC, HGLRC)) UFO_WGL_PROC(HGLRC
HDC UFO_WGL_PROC (BOOL, wglDeleteContext,(HGLRC)) UFO_WGL_PROC(BOOL
HINSTANCE getInstance () const
UXContextgetContextFromWindow (HWND window)
UXWGLDevicegetDeviceFromWindow (HWND window)
void initKeymap ()
LRESULT windowProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
UMod_t mapWin32Button (int msg)

Static Public Member Functions

UPluginBasecreatePlugin ()
void destroyPlugin (UPluginBase *plugin)

Public Attributes

 wglCreateContext
HDC wglShareLists
HDC HGLRC

Detailed Description

A video driver which uses Win32/WGL for windowing.

Author:
Johannes Schmidt


Member Function Documentation

virtual UVideoDevice* ufo::UXWGLDriver::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::UXWGLDriver::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::UXWGLDriver::init  )  [virtual]
 

Initializes the video driver, loads necessary native drivers.

Returns:
True on sucess

Implements ufo::UVideoDriver.

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

Returns:
True if initialization was succesful.

Implements ufo::UVideoDriver.

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

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

Implements ufo::UVideoDriver.

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