CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

csPolyTextureMapping Struct Reference
[3D]

This structure holds mapping information to map the texture and lightmap on a polygon. More...

#include <ivideo/polyrender.h>

List of all members.

Public Member Functions

 csPolyTextureMapping ()
void GetCoordsOnSuperLM (float &lmu1, float &lmv1, float &lmu2, float &lmv2) const
 Get lightmap coordinates (on super lightmap).
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 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.
int GetLitHeight () const
 Get height of lit texture.
int GetLitOriginalWidth () const
 Get original width.
int GetLitWidth () const
 Get width of lit texture (power of 2).
csMatrix3GetO2T ()
const csMatrix3GetO2T () const
csVector3GetO2TTranslation ()
const csVector3GetO2TTranslation () const
int GetShiftU () const
 Get the power of the lowest power of 2 that is not smaller than the texture bounding box' width.
void GetTextureBox (float &fMinU, float &fMinV, float &fMaxU, float &fMaxV) const
 Get texture box.
csPolyTextureMappingoperator= (const csPolyTextureMapping &other)
void SetCoordsOnSuperLM (float lmu1, float lmv1, float lmu2, float lmv2)
 Set lightmap coordinates (on super lightmap).
void SetFDUV (float u, float v)
 Set the u and v values 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 SetLitHeight (int h)
 Set height of lit texture.
void SetLitOriginalWidth (int w_orig)
 Set original width of lit texture.
void SetLitWidth (int w)
 Set width of lit texture (power of 2).
void SetO2T (const csMatrix3 &m)
void SetO2TTranslation (const csVector3 &v)
void SetShiftU (int su)
 Set the shift.
void SetTextureBox (float fMinU, float fMinV, float fMaxU, float fMaxV)
 Set texture box.


Detailed Description

This structure holds mapping information to map the texture and lightmap on a polygon.

Definition at line 42 of file polyrender.h.


Member Function Documentation

void csPolyTextureMapping::GetCoordsOnSuperLM float &  lmu1,
float &  lmv1,
float &  lmu2,
float &  lmv2
const [inline]
 

Get lightmap coordinates (on super lightmap).

Definition at line 187 of file polyrender.h.

float csPolyTextureMapping::GetFDU  )  const [inline]
 

Get the u-value of the textures bounding box' lower left corner.

Definition at line 155 of file polyrender.h.

float csPolyTextureMapping::GetFDV  )  const [inline]
 

Get the v-value of the textures bounding box' lower left corner.

Definition at line 157 of file polyrender.h.

int csPolyTextureMapping::GetIMinU  )  const [inline]
 

Get the rounded u-value of the textures bounding box' lower left corner.

Definition at line 127 of file polyrender.h.

int csPolyTextureMapping::GetIMinV  )  const [inline]
 

Get the rounded v-value of the textures bounding box' lower left corner.

Definition at line 129 of file polyrender.h.

int csPolyTextureMapping::GetLitHeight  )  const [inline]
 

Get height of lit texture.

Definition at line 182 of file polyrender.h.

int csPolyTextureMapping::GetLitOriginalWidth  )  const [inline]
 

Get original width.

Definition at line 185 of file polyrender.h.

int csPolyTextureMapping::GetLitWidth  )  const [inline]
 

Get width of lit texture (power of 2).

Definition at line 180 of file polyrender.h.

int csPolyTextureMapping::GetShiftU  )  const [inline]
 

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 122 of file polyrender.h.

void csPolyTextureMapping::GetTextureBox float &  fMinU,
float &  fMinV,
float &  fMaxU,
float &  fMaxV
const [inline]
 

Get texture box.

Definition at line 136 of file polyrender.h.

void csPolyTextureMapping::SetCoordsOnSuperLM float  lmu1,
float  lmv1,
float  lmu2,
float  lmv2
[inline]
 

Set lightmap coordinates (on super lightmap).

Definition at line 196 of file polyrender.h.

void csPolyTextureMapping::SetFDUV float  u,
float  v
[inline]
 

Set the u and v values of the textures bounding box' lower left corner.

Definition at line 162 of file polyrender.h.

void csPolyTextureMapping::SetIMinUV int  u,
int  v
[inline]
 

Set the rounded u and v values of the textures bounding box' lower left corner.

Definition at line 134 of file polyrender.h.

void csPolyTextureMapping::SetLitHeight int  h  )  [inline]
 

Set height of lit texture.

Definition at line 170 of file polyrender.h.

void csPolyTextureMapping::SetLitOriginalWidth int  w_orig  )  [inline]
 

Set original width of lit texture.

Definition at line 175 of file polyrender.h.

void csPolyTextureMapping::SetLitWidth int  w  )  [inline]
 

Set width of lit texture (power of 2).

Definition at line 165 of file polyrender.h.

void csPolyTextureMapping::SetShiftU int  su  )  [inline]
 

Set the shift.

Definition at line 124 of file polyrender.h.

void csPolyTextureMapping::SetTextureBox float  fMinU,
float  fMinV,
float  fMaxU,
float  fMaxV
[inline]
 

Set texture box.

Definition at line 145 of file polyrender.h.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.4.4