Class ClusterTexCoordMapping

Class Documentation

class ClusterTexCoordMapping

Mapping of clusters to texture coordinates for a single vertex.

Each vertex can be contained in several clusters, for each cluster there will be one entry in the array. Each entry is a pair that consists of a cluster handle and texture coordinates. This implementation assumes that a vertex is not contained in more than 100 clusters.

Public Functions

inline ClusterTexCoordMapping()

Constructor.

inline void push(ClusterHandle handle, TexCoords tex)

Adds an entry to the mapping.

Parameters:
  • handle – The cluster handle

  • tex – The texture coordinates

inline TexCoords getTexCoords(ClusterHandle clusterH) const

Returns the texture coordinates to a given cluster handle.

Parameters:

clusterH – The cluster handle

Returns:

The texture coordinates