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

ufo::UXWGLDevice Class Reference

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

#include <uxwgldriver.hpp>

Inheritance diagram for ufo::UXWGLDevice:

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

Public Member Functions

 UXWGLDevice (UXWGLDriver *driver)
virtual void setSize (int w, int h)
virtual UDimension getSize () const
virtual void setLocation (int x, int y)
virtual UPoint getLocation () const
virtual void setTitle (const std::string &title)
virtual std::string getTitle () const
virtual void setDepth (int depth)
virtual int getDepth () const
virtual void swapBuffers ()
virtual void makeContextCurrent ()
virtual bool show ()
virtual void hide ()
virtual void setFrameStyle (uint32_t frameStyle)
virtual uint32_t getFrameStyle () const
virtual void setInitialFrameState (uint32_t frameState)
virtual uint32_t getFrameState () const
virtual void setFrame (UXFrame *frame)
virtual void notify (uint32_t type, int arg1, int arg2, int arg3, int arg4)
virtual UXFramegetFrame () const
bool setupPixelFormat (unsigned char layer_type)
HWND getWindow ()
HDC getDC ()
HGLRC getGLContext ()
void setDecorations ()
void setSizeHints ()
void setWMHints ()

Protected Member Functions

int getAttribute (int key)
void setAttribute (int key, int value)

Detailed Description

A video device which uses Win32/WGL for windowing.

Author:
Johannes Schmidt


Member Function Documentation

virtual uint32_t ufo::UXWGLDevice::getFrameState  )  const [virtual]
 

Returns:
The current frame state or the initial frame state if this window is not visible.

Implements ufo::UVideoDevice.

virtual void ufo::UXWGLDevice::makeContextCurrent  )  [virtual]
 

Makes the OpenGL context associated with this device the current OpenGL context for the current thread.

Implements ufo::UVideoDevice.

virtual void ufo::UXWGLDevice::notify uint32_t  type,
int  arg1,
int  arg2,
int  arg3,
int  arg4
[virtual]
 

Notifies this device abstraction of changes to the native device. Warning: The interface for this method is experimental.

Parameters:
type The type of the change (we are using UEvent::Type for distinction)
arg1 The first argument (may be 0)
arg2 The second argument (may be 0)
arg3 The third argument (may be 0)
arg4 The fourth argument (may be 0)

Implements ufo::UVideoDevice.

virtual void ufo::UXWGLDevice::setFrameStyle uint32_t  frameStyle  )  [virtual]
 

Changes the frame style for the native device.

See also:
FrameStyle

Implements ufo::UVideoDevice.

virtual void ufo::UXWGLDevice::setInitialFrameState uint32_t  frameState  )  [virtual]
 

Changes the initial frame state for the native device. This method may not have any effect if the window is already visible.

See also:
FrameState

Implements ufo::UVideoDevice.


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