csPolyTextureMapping Struct Reference
This structure holds mapping information to map the texture and lightmap on a polygon. More...
#include <polygon.h>
Public Methods | |
int | GetShiftU () const |
Get the power of the lowest power of 2 that is not smaller than the texture bounding box' width. | |
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 | GetTextureBox (float &fMinU, float &fMinV, float &fMaxU, float &fMaxV) const |
Get 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. | |
int | GetWidth () const |
Get width of lit texture (power of 2). | |
int | GetHeight () const |
Get height of lit texture. | |
int | GetOriginalWidth () const |
Get original width. | |
Public Attributes | |
csMatrix3 | m_obj2tex |
Transformation from object to texture space. | |
csVector3 | v_obj2tex |
Translation from object to texture space. | |
int | Imin_u |
Bounding box of corresponding polygon in 2D texture space. | |
int | Imin_v |
Bounding box of corresponding polygon in 2D texture space. | |
float | Fmin_u |
fp bounding box (0..1 texture space) | |
float | Fmin_v |
fp bounding box (0..1 texture space) | |
float | Fmax_u |
fp bounding box (0..1 texture space) | |
float | Fmax_v |
fp bounding box (0..1 texture space) | |
int | w |
Width of lit texture ('w' is a power of 2). | |
int | h |
Height of lit texture. | |
int | w_orig |
Original width (may not be a power of 2) (w_orig <= w). | |
float | lmu1 |
Coordinates of the lightmap on the super lightmap, in renderer coords. | |
float | lmv1 |
Coordinates of the lightmap on the super lightmap, in renderer coords. | |
float | lmu2 |
Coordinates of the lightmap on the super lightmap, in renderer coords. | |
float | lmv2 |
Coordinates of the lightmap on the super lightmap, in renderer coords. |
Detailed Description
This structure holds mapping information to map the texture and lightmap on a polygon.
Definition at line 37 of file polygon.h.
Member Function Documentation
|
Get the u-value of the textures bounding box' lower left corner.
|
|
Get the v-value of the textures bounding box' lower left corner.
|
|
Get height of lit texture.
Definition at line 104 of file polygon.h. References h. |
|
Get the rounded u-value of the textures bounding box' lower left corner.
Definition at line 74 of file polygon.h. References Imin_u. |
|
Get the rounded v-value of the textures bounding box' lower left corner.
Definition at line 76 of file polygon.h. References Imin_v. |
|
Get original width.
Definition at line 107 of file polygon.h. References w_orig. |
|
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) |
|
Get texture box.
|
|
Get width of lit texture (power of 2).
Definition at line 102 of file polygon.h. References w. |
Member Data Documentation
|
fp bounding box (0..1 texture space)
Definition at line 61 of file polygon.h. Referenced by GetTextureBox(). |
|
fp bounding box (0..1 texture space)
Definition at line 61 of file polygon.h. Referenced by GetTextureBox(). |
|
fp bounding box (0..1 texture space)
Definition at line 61 of file polygon.h. Referenced by GetTextureBox(). |
|
fp bounding box (0..1 texture space)
Definition at line 61 of file polygon.h. Referenced by GetTextureBox(). |
|
Height of lit texture.
Definition at line 96 of file polygon.h. Referenced by GetHeight(). |
|
Bounding box of corresponding polygon in 2D texture space. Note that the u-axis of this bounding box is made a power of 2 for efficiency reasons. Definition at line 58 of file polygon.h. Referenced by GetIMinU(). |
|
Bounding box of corresponding polygon in 2D texture space. Note that the u-axis of this bounding box is made a power of 2 for efficiency reasons. Definition at line 58 of file polygon.h. Referenced by GetIMinV(). |
|
Coordinates of the lightmap on the super lightmap, in renderer coords.
|
|
Coordinates of the lightmap on the super lightmap, in renderer coords.
|
|
Coordinates of the lightmap on the super lightmap, in renderer coords.
|
|
Coordinates of the lightmap on the super lightmap, in renderer coords.
|
|
Transformation from object to texture space.
|
|
Translation from object to texture space.
|
|
Width of lit texture ('w' is a power of 2).
Definition at line 93 of file polygon.h. Referenced by GetWidth(). |
|
Original width (may not be a power of 2) (w_orig <= w).
Definition at line 99 of file polygon.h. Referenced by GetOriginalWidth(). |
The documentation for this struct was generated from the following file:
- imesh/thing/polygon.h
Generated for Crystal Space by doxygen 1.2.18