Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csPolyTexType Class Reference

Kind of texturing that is used for a 3D polygon. More...

#include <polygon.h>

Inheritance diagram for csPolyTexType:

iPolyTexType iBase csPolyTexFlat csPolyTexLightMap csPolyTexGouraud List of all members.

Public Methods

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

int GetAlpha ()
 Get the alpha value for this polygon.

void SetAlpha (int a)
 Set the alpha value for this polygon.

virtual void SetMixMode (uint m)
 Sets the mode that is used for DrawPolygonFX.

virtual uint GetMixMode ()
 Gets the mode that is used for DrawPolygonFX.


Public Attributes

 SCF_DECLARE_IBASE

Protected Methods

 csPolyTexType ()
 Common constructor for derived classes.

virtual ~csPolyTexType ()
 Destructor is virtual to be able to delete derived objects.


Protected Attributes

uint16 Alpha
 0 is no alpha, 25 is 25% see through and 75% texture and so on. More...

uint MixMode
 MixMode to use for drawing this polygon (plus alpha value which is stored separately). More...


Friends

class  csPolygon3D

Detailed Description

Kind of texturing that is used for a 3D polygon.

This is the base class with subclasses depending on the kind of texturing that is used for a polygon. Also this class contains all the information required for POLYTXT_NONE texture type.


Member Data Documentation

uint16 csPolyTexType::Alpha [protected]
 

0 is no alpha, 25 is 25% see through and 75% texture and so on.

Valid values are from 0 to 100; some renderers in some modes will approximate it (and some values like 25/50/75 are optimized for speed). Note that alpha is in range 0..255, 0 for 0% and 255 for 100%.

uint csPolyTexType::MixMode [protected]
 

MixMode to use for drawing this polygon (plus alpha value which is stored separately).

The GetMixMode() function will overlap both variables to get one compound value.


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