TriListOpt
Engine/source/gfx/util/triListOpt.cpp
Classes:
Namespaces:
namespace
Public Typedefs
IndexType
Public Variables
Public Functions
OptimizeTriangleOrdering(const dsize_t numVerts, const dsize_t numIndices, const U32 * indices, IndexType * outIndices)
This method will look at the index buffer for a triangle list, and generate a new index buffer which is optimized using Tom Forsyth's paper: "Linear-Speed Vertex Cache Optimization"
Detailed Description
Public Typedefs
typedef U32 IndexType
Public Variables
const U32 MaxSizeVertexCache
Public Functions
OptimizeTriangleOrdering(const dsize_t numVerts, const dsize_t numIndices, const U32 * indices, IndexType * outIndices)
This method will look at the index buffer for a triangle list, and generate a new index buffer which is optimized using Tom Forsyth's paper: "Linear-Speed Vertex Cache Optimization"
Parameters:
numVerts | Number of vertices indexed by the 'indices' |
numIndices | Number of elements in both 'indices' and 'outIndices' |
indices | Input index buffer |
outIndices | Output index buffer |
note:Both 'indices' and 'outIndices' can point to the same memory.