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

ufo::UContextGroup Class Reference

#include <ucontextgroup.hpp>

Inheritance diagram for ufo::UContextGroup:

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

Public Member Functions

std::vector< UContext * > getContexts ()
bool belongsToGroup (UContext *context)
void refresh ()
uint32_t getLastRefreshTime () const
void addVolatileData (UVolatileData *vdata)
void removeVolatileData (UVolatileData *vdata)
void addContext (UContext *context)
void removeContext (UContext *context)

Detailed Description

A context group represents all (OpenGL)/UFO context which share memory, i.e. may use the same images and font renderers.

Author:
Johannes Schmidt


Member Function Documentation

bool ufo::UContextGroup::belongsToGroup UContext context  ) 
 

Returns true if the given context belongs to this groups.

std::vector<UContext*> ufo::UContextGroup::getContexts  ) 
 

Returns all contexts which belong to this context groups.

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

Gets the time stamp of the last refresh. This may be used to avoid unnecessary refreshes.

void ufo::UContextGroup::refresh  ) 
 

Should be called when the (OpenGL) data should be refreshed. Refreshes all registered contexts.


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