Mapping of clusters to texture coordinates for a single vertex. More...
#include <ClusterTexCoordMapping.hpp>
| Public Member Functions | |
| ClusterTexCoordMapping () | |
| Constructor.  More... | |
| TexCoords | getTexCoords (ClusterHandle clusterH) const | 
| Returns the texture coordinates to a given cluster handle.  More... | |
| void | push (ClusterHandle handle, TexCoords tex) | 
| Adds an entry to the mapping.  More... | |
| Private Attributes | |
| size_t | m_len | 
| The number of stored pairs.  More... | |
| array< boost::optional< pair< ClusterHandle, TexCoords > >, 100 > | m_mapping | 
| The mapping of cluster handles to texture coordinates.  More... | |
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.
Definition at line 76 of file ClusterTexCoordMapping.hpp.
| 
 | inline | 
Constructor.
Definition at line 88 of file ClusterTexCoordMapping.hpp.
| 
 | inline | 
Returns the texture coordinates to a given cluster handle.
| clusterH | The cluster handle | 
Definition at line 116 of file ClusterTexCoordMapping.hpp.
| 
 | inline | 
Adds an entry to the mapping.
| handle | The cluster handle | 
| tex | The texture coordinates | 
Definition at line 96 of file ClusterTexCoordMapping.hpp.
| 
 | private | 
The number of stored pairs.
Definition at line 82 of file ClusterTexCoordMapping.hpp.
| 
 | private | 
The mapping of cluster handles to texture coordinates.
Definition at line 80 of file ClusterTexCoordMapping.hpp.