CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | 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

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

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

Get lightmap coordinates (on super lightmap).

Definition at line 189 of file polyrender.h.

float csPolyTextureMapping::GetFDU  )  const [inline]
 

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

Definition at line 157 of file polyrender.h.

float csPolyTextureMapping::GetFDV  )  const [inline]
 

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

Definition at line 159 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 129 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 131 of file polyrender.h.

int csPolyTextureMapping::GetLitHeight  )  const [inline]
 

Get height of lit texture.

Definition at line 184 of file polyrender.h.

int csPolyTextureMapping::GetLitOriginalWidth  )  const [inline]
 

Get original width.

Definition at line 187 of file polyrender.h.

int csPolyTextureMapping::GetLitWidth  )  const [inline]
 

Get width of lit texture (power of 2).

Definition at line 182 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 124 of file polyrender.h.

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

Get texture box.

Definition at line 138 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 198 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 164 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 136 of file polyrender.h.

void csPolyTextureMapping::SetLitHeight int  h  )  [inline]
 

Set height of lit texture.

Definition at line 172 of file polyrender.h.

void csPolyTextureMapping::SetLitOriginalWidth int  w_orig  )  [inline]
 

Set original width of lit texture.

Definition at line 177 of file polyrender.h.

void csPolyTextureMapping::SetLitWidth int  w  )  [inline]
 

Set width of lit texture (power of 2).

Definition at line 167 of file polyrender.h.

void csPolyTextureMapping::SetShiftU int  su  )  [inline]
 

Set the shift.

Definition at line 126 of file polyrender.h.

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

Set texture box.

Definition at line 147 of file polyrender.h.


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