texcoord.hxx File Reference

Routine to handle texture coordinate generation. More...

#include <simgear/bucket/newbucket.hxx>
#include <simgear/math/sg_types.hxx>

Go to the source code of this file.

Functions

point_list sgCalcTexCoords (const SGBucket &b, const point_list &geod_nodes, const int_list &fan, double scale=1.0)
 Traverse the specified fan/strip/list of vertices and attempt to calculate "none stretching" texture coordinates.

Detailed Description

Routine to handle texture coordinate generation.

Definition in file texcoord.hxx.


Function Documentation

point_list sgCalcTexCoords ( const SGBucket b,
const point_list geod_nodes,
const int_list fan,
double  scale = 1.0 
)

Traverse the specified fan/strip/list of vertices and attempt to calculate "none stretching" texture coordinates.

Parameters:
b the bucket containing the structure
geod_nodes vertices in geodetic coordinates
fan integer list of indices pointing into the vertex list
scale (default = 1.0) scaling factor
Returns:
list of texture coordinates

Definition at line 178 of file texcoord.cxx.


Generated on 23 Feb 2010 for SimGear by  doxygen 1.6.1