#include <texturewidget.h>
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 |
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.
CTextureWidget::CTextureWidget | ( | ITextureState * | ts, | |
IUniformState * | us | |||
) |
Constructs a texture widget.
ts | ITextureState object to manipulate. | |
us | IUniformState object to manipulate. |
void CTextureWidget::init | ( | void | ) |
Initializes the texture widget.
After this call, the widget is ready to operate.
void CTextureWidget::shutdown | ( | void | ) |
Put the widget into an uninitialized state.
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.