csPolyTextureMapping Struct Reference
[3D]
This structure holds mapping information to map the texture and lightmap on a polygon.
More...
#include <ivideo/polyrender.h>
Public Member Functions | |
int | GetShiftU () const |
Get the power of the lowest power of 2 that is not smaller than the texture bounding box' width. | |
void | SetShiftU (int su) |
Set the shift. | |
int | GetIMinU () const |
Get the rounded u-value of the textures bounding box' lower left corner. | |
int | GetIMinV () const |
Get the rounded v-value of the textures bounding box' lower left corner. | |
void | SetIMinUV (int u, int v) |
Set the rounded u and v values of the textures bounding box' lower left corner. | |
void | GetTextureBox (float &fMinU, float &fMinV, float &fMaxU, float &fMaxV) const |
Get texture box. | |
void | SetTextureBox (float fMinU, float fMinV, float fMaxU, float fMaxV) |
Set texture box. | |
float | GetFDU () const |
Get the u-value of the textures bounding box' lower left corner. | |
float | GetFDV () const |
Get the v-value of the textures bounding box' lower left corner. | |
void | SetFDUV (float u, float v) |
Set the u and v values of the textures bounding box' lower left corner. | |
void | SetLitWidth (int w) |
Set width of lit texture (power of 2). | |
void | SetLitHeight (int h) |
Set height of lit texture. | |
void | SetLitOriginalWidth (int w_orig) |
Set original width of lit texture. | |
int | GetLitWidth () const |
Get width of lit texture (power of 2). | |
int | GetLitHeight () const |
Get height of lit texture. | |
int | GetLitOriginalWidth () const |
Get original width. | |
void | GetCoordsOnSuperLM (float &lmu1, float &lmv1, float &lmu2, float &lmv2) const |
Get lightmap coordinates (on super lightmap). | |
void | SetCoordsOnSuperLM (float lmu1, float lmv1, float lmu2, float lmv2) |
Set lightmap coordinates (on super lightmap). |
Detailed Description
This structure holds mapping information to map the texture and lightmap on a polygon.
Definition at line 44 of file polyrender.h.
Member Function Documentation
|
Get lightmap coordinates (on super lightmap).
Definition at line 189 of file polyrender.h. |
|
Get the u-value of the textures bounding box' lower left corner.
Definition at line 157 of file polyrender.h. |
|
Get the v-value of the textures bounding box' lower left corner.
Definition at line 159 of file polyrender.h. |
|
Get the rounded u-value of the textures bounding box' lower left corner.
Definition at line 129 of file polyrender.h. |
|
Get the rounded v-value of the textures bounding box' lower left corner.
Definition at line 131 of file polyrender.h. |
|
Get height of lit texture.
Definition at line 184 of file polyrender.h. |
|
Get original width.
Definition at line 187 of file polyrender.h. |
|
Get width of lit texture (power of 2).
Definition at line 182 of file polyrender.h. |
|
Get the power of the lowest power of 2 that is not smaller than the texture bounding box' width. that is: 2^shift_u >= texbbox-width > 2^(shift_u-1) Definition at line 124 of file polyrender.h. |
|
Get texture box.
Definition at line 138 of file polyrender.h. |
|
Set lightmap coordinates (on super lightmap).
Definition at line 198 of file polyrender.h. |
|
Set the u and v values of the textures bounding box' lower left corner.
Definition at line 164 of file polyrender.h. |
|
Set the rounded u and v values of the textures bounding box' lower left corner.
Definition at line 136 of file polyrender.h. |
|
Set height of lit texture.
Definition at line 172 of file polyrender.h. |
|
Set original width of lit texture.
Definition at line 177 of file polyrender.h. |
|
Set width of lit texture (power of 2).
Definition at line 167 of file polyrender.h. |
|
Set the shift.
Definition at line 126 of file polyrender.h. |
|
Set texture box.
Definition at line 147 of file polyrender.h. |
The documentation for this struct was generated from the following file:
- ivideo/polyrender.h
Generated for Crystal Space by doxygen 1.3.9.1