#include <polygon.h>
Inheritance diagram for csPolyTexType:
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 | |
ushort | 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 |
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.
|
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%. |
|
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. |