#include <CUI_SimpleShader.h>
Inheritance diagram for CUI_SimpleShader:
Public Member Functions | |
CUI_SimpleShader () | |
Default constructor. | |
CUI_SimpleShader (int texid) | |
Use a preloaded texture. | |
CUI_SimpleShader (int texid, v4_f color) | |
Use a preloaded texture and a specific color. | |
CUI_SimpleShader (v4_f color) | |
Create a solid color shader. | |
virtual | ~CUI_SimpleShader () |
Destructor. | |
virtual int | GetTexid (void) |
get the texture id for this shader | |
virtual bool | SetColorv (v4_f color) |
set the color for this shader | |
virtual bool | GetColorv (v4_f color) |
get the color for this shader | |
Protected Attributes | |
int | m_texid |
texture identifier | |
v4_f | m_color |
RGBA color. |
Currently a single texture and a color.
Future implementations should include procedural effects, multiple textures, other blend modes, etc
Not a part of the core UI classes. An add-on for sample purposes which can, of course, be used if you don't want to interface to an existing engine.
|
Default constructor. Default shader is white with default texture |
|
Use a preloaded texture.
|
|
Use a preloaded texture and a specific color.
|
|
Create a solid color shader.
|