Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csPolyTexGouraud Class Reference

Structure containing information about texture mapping and vertex colors for Gouraud-shaded polygons. More...

#include <polygon.h>

Inheritance diagram for csPolyTexGouraud:

csPolyTexFlat csPolyTexType iPolyTexType iBase List of all members.

Public Methods

virtual int GetTextureType ()
 Return a type for the kind of texturing used.

void Setup (csPolygon3D *iParent)
 Setup this lighting structure with the rignt number of vertices, taken from parent object. More...

virtual void Setup (iPolygon3D *iParent)
 Setup this lighting structure with the rignt number of vertices, taken from parent object. More...

virtual void ClearColors ()
 Clear all color information.

virtual csColorGetColors ()
 Get the pointer to the vertex color table.

virtual csColorGetStaticColors ()
 Get the pointer to the static vertex color table.

void AddColor (int i, float r, float g, float b)
 Add a color to the static color array.

void AddDynamicColor (int i, float r, float g, float b)
 Add a color to the dynamic color array.

void SetDynamicColor (int i, float r, float g, float b)
 Set a color in the dynamic array.

virtual void ResetDynamicColor (int i)
 Reset a dynamic color to the static values.

virtual void SetDynamicColor (int i, const csColor &c)
 Set a color in the dynamic array.

void SetColor (int i, float r, float g, float b)
 Set a color in the static array.

virtual void SetColor (int i, const csColor &c)
 Set a color in the static array.

 SCF_DECLARE_IBASE_EXT (csPolyTexFlat)

Public Attributes

csPolyTexGouraud::eiPolyTexGouraud  scfiPolyTexGouraud

Protected Methods

 csPolyTexGouraud ()
 Constructor.

virtual ~csPolyTexGouraud ()
 Destructor.


Friends

class  csPolygon3D

Detailed Description

Structure containing information about texture mapping and vertex colors for Gouraud-shaded polygons.


Member Function Documentation

void csPolyTexGouraud::Setup ( iPolygon3D * iParent ) [virtual]
 

Setup this lighting structure with the rignt number of vertices, taken from parent object.

The contents of U/V array are not destroyed, if it was previously allocated.

Reimplemented from csPolyTexFlat.

void csPolyTexGouraud::Setup ( csPolygon3D * iParent )
 

Setup this lighting structure with the rignt number of vertices, taken from parent object.

The contents of U/V array are not destroyed, if it was previously allocated.

Reimplemented from csPolyTexFlat.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000