CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csPolyLightMapMapping Struct Reference

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

#include <polygon.h>

List of all members.

Public Methods

int GetWidth () const
 Get width of lit texture (power of 2). More...

int GetHeight () const
 Get height of lit texture. More...

int GetOriginalWidth () const
 Get original width. More...


Public Attributes

int w
 Width of lighted texture ('w' is a power of 2). More...

int h
 Height of lighted texture. More...

int w_orig
 Original width (may not be a power of 2) (w_orig <= w). More...


Detailed Description

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

You can get it from the iPolygonTexture below.

Definition at line 365 of file polygon.h.


Member Function Documentation

int csPolyLightMapMapping::GetHeight   const [inline]
 

Get height of lit texture.

Definition at line 391 of file polygon.h.

References h.

int csPolyLightMapMapping::GetOriginalWidth   const [inline]
 

Get original width.

Definition at line 394 of file polygon.h.

References w_orig.

int csPolyLightMapMapping::GetWidth   const [inline]
 

Get width of lit texture (power of 2).

Definition at line 389 of file polygon.h.

References w.


Member Data Documentation

int csPolyLightMapMapping::h
 

Height of lighted texture.

Definition at line 378 of file polygon.h.

Referenced by GetHeight.

int csPolyLightMapMapping::w
 

Width of lighted texture ('w' is a power of 2).

Definition at line 375 of file polygon.h.

Referenced by GetWidth.

int csPolyLightMapMapping::w_orig
 

Original width (may not be a power of 2) (w_orig <= w).

Definition at line 381 of file polygon.h.

Referenced by GetOriginalWidth.


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