Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csPolyTxtPlane Class Reference

This class represents a texture plane. More...

#include <polytmap.h>

Inheritance diagram for csPolyTxtPlane:

csObject iObject iBase List of all members.

Public Methods

 csPolyTxtPlane ()
 Constructor. Reference count is initialized to 1.

void ObjectToWorld (const csReversibleTransform &obj)
 Transform this plane from object space to world space using the given transform.

void HardTransform (const csReversibleTransform &obj)
 Hard transform of this plane.

void WorldToCamera (const csReversibleTransform &t, csMatrix3 &m_cam2tex, csVector3 &v_cam2tex)
 Transform this plane from world space to camera space using the given transform. More...

void GetObjectToTexture (csMatrix3 *&m_obj2tex, csVector3 *&v_obj2tex)
 Get object to texture transformation.

void GetWorldToTexture (csMatrix3 *&m_wor2tex, csVector3 *&v_wor2tex)
 Get world to texture transformation.

void SetTextureSpace (const csVector3 &v_orig, const csVector3 &v1, float len1, const csVector3 &v2, float len2)
void SetTextureSpace (const csPlane3 &plane_wor, float xo, float yo, float zo, float x1, float y1, float z1, float len)
void SetTextureSpace (const csPlane3 &plane_wor, const csVector3 &v_orig, const csVector3 &v1, float len)
void SetTextureSpace (const csVector3 &v_orig, const csVector3 &v_u, const csVector3 &v_v)
void SetTextureSpace (float xo, float yo, float zo, float xu, float yu, float zu, float xv, float yv, float zv)
void SetTextureSpace (float xo, float yo, float zo, float xu, float yu, float zu, float xv, float yv, float zv, float xw, float yw, float zw)
void SetTextureSpace (const csMatrix3 &tx_matrix, const csVector3 &tx_vector)
void GetTextureSpace (csMatrix3 &tx_matrix, csVector3 &tx_vector)
 Get the transformation from object to texture space.

 SCF_DECLARE_IBASE_EXT (csObject)

Public Attributes

csPolyTxtPlane::PolyTxtPlane  scfiPolyTxtPlane

Friends

class  csPolygon2D
class  csPolyTexture
class  PolyTxtPlane

Detailed Description

This class represents a texture plane.

This is a plane that defines the orientation and offset of a texture. It can be used by several polygons to let the textures fit perfectly.


Member Function Documentation

void csPolyTxtPlane::WorldToCamera ( const csReversibleTransform & t,
csMatrix3 & m_cam2tex,
csVector3 & v_cam2tex )
 

Transform this plane from world space to camera space using the given transform.

The resulting transform is put in m_cam2tex and v_cam2tex.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000