Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iPolyTexFlat Struct Reference

Kind of texturing that is used for a 3D polygon which has flat-shaded texture mapping. More...

#include <ptextype.h>

Inheritance diagram for iPolyTexFlat:

iBase List of all members.

Public Methods

virtual void Setup (iPolygon3D *iParent)=0
 Setup this lighting structure with the right number of vertices, taken from parent object. More...

virtual void SetUV (int i, float u, float v)=0
 Set an (u,v) texture coordinate for the specified vertex of this polygon. More...

virtual void ClearUV ()=0
 Clear all (u,v) coordinates.

virtual csVector2GetUVCoords ()=0
 Get the pointer to the vertex uv coordinates.


Detailed Description

Kind of texturing that is used for a 3D polygon which has flat-shaded texture mapping.


Member Function Documentation

void iPolyTexFlat::SetUV ( int i,
float u,
float v ) [pure virtual]
 

Set an (u,v) texture coordinate for the specified vertex of this polygon.

This function may only be called after all vertices have been added. As soon as this function is used this polygon will be rendered using a different technique (perspective incorrect texture mapping and Gouroud shading). This is useful for triangulated objects for which the triangles are very small and also for drawing very far away polygons for which perspective correctness is not needed (sky polygons for example).

void iPolyTexFlat::Setup ( iPolygon3D * p ) [pure virtual]
 

Setup this lighting structure with the right number of vertices, taken from parent object.

The contents of U/V array are not destroyed, if it was previously allocated.


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