|
virtual | ~RefCounted () |
| Protected so users of refcounted classes don't use std::auto_ptr or the delete operator.
|
|
◆ appendBlendVertex()
Record one blend vertex.
This function adds a blend vertex to a sparse array. Vertices must be added in increasing order of ID.
- Parameters
-
vertexId | The ID of the vertex. |
vertex | A blend vertex. |
- Returns
- One of the following values:
- true if successful
- false if an error happened
◆ getBlendVertex()
Retrieve one blend vertex.
This function gets a blend vertex from the difference map if it is present.
If we were supporting random access, we would look up the vertex ID using binary search. But actually, the physique calls getBlendVertex sequentially, so we optimize for that access.
- Parameters
-
vertexId | The ID of the vertex. |
outVertex | A blend vertex. |
- Returns
- One of the following values:
- true if successful
- false if the vertex is not present in the difference map
◆ reserve()
bool CalSharedDifferenceMap::reserve |
( |
int | blendVertexCount | ) |
|
Reserves memory for the blend vertices.
This function reserves memory for the blend vertices of the difference map.
- Parameters
-
blendVertexCount | The number of blend vertices that this difference map should be able to hold. |
- Returns
- One of the following values:
- true if successful
- false if an error happened
The documentation for this class was generated from the following files: