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

ufo::UVolatileData Class Reference

An interface for volatile data, i.e. for data which have to be recreated after an OpenGL context was destroyed and recreated. More...

#include <uvolatiledata.hpp>

Inheritance diagram for ufo::UVolatileData:

ufo::UObject ufo::UCollectable ufo::UFontRenderer ufo::UImage ufo::UGL_BuiltinFontRenderer ufo::UGL_TextureFontRenderer ufo::UTextureFontRenderer ufo::UGL_Image List of all members.

Public Member Functions

 UVolatileData (UDisplay *display=NULL)
virtual void refresh ()=0
UDisplaygetDisplay () const
bool needsRefresh () const
uint32_t getLastRefreshTime () const

Protected Member Functions

void setDisplay (UDisplay *display)
void updateRefreshTime ()

Detailed Description

An interface for volatile data, i.e. for data which have to be recreated after an OpenGL context was destroyed and recreated.

Author:
Johannes Schmidt


Member Function Documentation

UDisplay * ufo::UVolatileData::getDisplay  )  const [inline]
 

Returns the context group which stores the volatile data.

uint32_t ufo::UVolatileData::getLastRefreshTime  )  const [inline]
 

Returns the time stamp of the last refresh.

bool ufo::UVolatileData::needsRefresh  )  const
 

Returns true when the volatile data needs a refresh.

void ufo::UVolatileData::setDisplay UDisplay display  )  [protected]
 

Sets the context group.

void ufo::UVolatileData::updateRefreshTime  )  [protected]
 

Updates the time stamp. Should be called at a call to refresh.


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