CrystalSpace

Public API Reference

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

List of all members.

Public Methods

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

float csPolyTextureMapping::GetFDV   const [inline]
 

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

Definition at line 158 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 128 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 130 of file polyrender.h.

int csPolyTextureMapping::GetLitHeight   const [inline]
 

Get height of lit texture.

Definition at line 183 of file polyrender.h.

int csPolyTextureMapping::GetLitOriginalWidth   const [inline]
 

Get original width.

Definition at line 186 of file polyrender.h.

int csPolyTextureMapping::GetLitWidth   const [inline]
 

Get width of lit texture (power of 2).

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

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

Get texture box.

Definition at line 137 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 163 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 135 of file polyrender.h.

void csPolyTextureMapping::SetLitHeight int    h [inline]
 

Set height of lit texture.

Definition at line 171 of file polyrender.h.

void csPolyTextureMapping::SetLitOriginalWidth int    w_orig [inline]
 

Set original width of lit texture.

Definition at line 176 of file polyrender.h.

void csPolyTextureMapping::SetLitWidth int    w [inline]
 

Set width of lit texture (power of 2).

Definition at line 166 of file polyrender.h.

void csPolyTextureMapping::SetShiftU int    su [inline]
 

Set the shift.

Definition at line 125 of file polyrender.h.

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

Set texture box.

Definition at line 146 of file polyrender.h.


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