CTextureWidget Class Reference

Widget for manipulating ITextureState. More...

#include <texturewidget.h>

List of all members.

Public Slots

void updateSamplerList (void)
 Forces the texture widget to update it's sampler list.

Public Member Functions

 CTextureWidget (ITextureState *ts, IUniformState *us)
 Constructs a texture widget.
void init (void)
 Initializes the texture widget.
void shutdown (void)
 Put the widget into an uninitialized state.

Classes

struct  buttonInfo_s


Detailed Description

Widget for manipulating ITextureState.

This widget allows the user to load image files into texture mapping unis, and to assign texture units to samplers. It is bound to a ITextureState object, which must live longer than the texture widget. It is also bound to a IUniformState object, which is used to manipulate uniforms of type GL_SAMPLER_2D.

A CTextureWidget can be constructed without a valid OpenGL context, but such acontext is required for initialization of the texture widget.

See also:
ITextureState

Constructor & Destructor Documentation

CTextureWidget::CTextureWidget ( ITextureState ts,
IUniformState us 
)

Constructs a texture widget.

Parameters:
ts ITextureState object to manipulate.
us IUniformState object to manipulate.


Member Function Documentation

void CTextureWidget::init ( void   ) 

Initializes the texture widget.

After this call, the widget is ready to operate.

Precondition:
The widget must be constructed with valid interfaces and a valid OpenGL context active. If these requrements are not met, behavior is undefined.

void CTextureWidget::shutdown ( void   ) 

Put the widget into an uninitialized state.

Precondition:
A valid OpenGL context must be active when calling this.

void CTextureWidget::updateSamplerList ( void   )  [slot]

Forces the texture widget to update it's sampler list.

Clears it current sampler list and loads a new list of the bound IUniformState object.

Precondition:
The widget must be initialized before this slot can be used.


The documentation for this class was generated from the following files:
Generated on Sun Mar 2 17:12:32 2008 for Shader Maker by  doxygen 1.5.4