Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CUI_SimpleShader Class Reference

A general purpose surface shader. More...

#include <CUI_SimpleShader.h>

Inheritance diagram for CUI_SimpleShader:

IUI_Shader List of all members.

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.


Detailed Description

A general purpose surface shader.

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.


Constructor & Destructor Documentation

CUI_SimpleShader::CUI_SimpleShader  ) 
 

Default constructor.

Default shader is white with default texture

CUI_SimpleShader::CUI_SimpleShader int  texid  ) 
 

Use a preloaded texture.

Parameters:
texid texture identifier

CUI_SimpleShader::CUI_SimpleShader int  texid,
v4_f  color
 

Use a preloaded texture and a specific color.

Parameters:
texid texture identifier
color RGBA color

CUI_SimpleShader::CUI_SimpleShader v4_f  color  ) 
 

Create a solid color shader.

Parameters:
color RGBA color


The documentation for this class was generated from the following files:
Generated on Mon Sep 29 23:07:04 2003 for glGUI by doxygen 1.3.4