class csGouraudShaded : public csPolygonTextureType Lighting class for gouraud shaded polygons
| | AddColor (int i, float r, float g, float b) Add a color to a static array color entry |
| | AddDynamicColor (int i, float r, float g, float b) Add a color to a dynamic array color entry |
| | Clear () Clear all (u,v) and color information |
| | EnableGouraud (bool g) Enable/disable gouraud |
| | GetColors () Get the pointer to the vertex color table. |
| | GetStaticColors () Get the pointer to the static vertex color table. |
| | GetTextureType () Return a type for the kind of texturing used. |
| | GetUVCoords () Get the pointer to the vertex uv coordinates. |
| | ResetDynamicColor (int i) Reset a dynamic color to the static values |
| | SetColor (int i, csColor& c) Set a color in the static array |
| | SetColor (int i, float r, float g, float b) Set a color in the static array |
| | SetDynamicColor (int i, float r, float g, float b) Set a color in the dynamic array |
| | SetDynamicColor (int i, csColor& c) Set a color in the dynamic array |
| | Setup (int num_vertices) Setup this lighting structure with the rignt number of vertices |
| | SetUV (int i, float u, float v) Set an (u,v) texture coordinate for the specified vertex of this polygon |
| | colors If uv_coords is given then this can be an optional array of vertex colors |
| | num_vertices Number of vertices. |
| | static_colors This array contains the static colors |
| | uv_coords If the following arrays is non-NULL then this polygon is drawn using a different technique (all previous mipmap and lightmap stuff is ignored) |
| | csGouraudShaded () Constructor. |
| | ~csGouraudShaded () Destructor. |
Lighting class for gouraud shaded polygons
csColor* colors
csColor* static_colors
int num_vertices
csGouraudShaded()
virtual ~csGouraudShaded()
virtual int GetTextureType()
void Setup(int num_vertices)
void EnableGouraud(bool g)
void SetUV(int i, float u, float v)
void Clear()
csVector2* GetUVCoords()
csColor* GetColors()
csColor* GetStaticColors()
void AddColor(int i, float r, float g, float b)
void AddDynamicColor(int i, float r, float g, float b)
void SetDynamicColor(int i, float r, float g, float b)
void ResetDynamicColor(int i)
void SetDynamicColor(int i, csColor& c)
void SetColor(int i, float r, float g, float b)
void SetColor(int i, csColor& c)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de