TriListOpt

Engine/source/gfx/util/triListOpt.cpp

More...

Classes:

Namespaces:

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" http://home.comcast.net/~tom_forsyth/papers/fast_vert_cache_opt.html.

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" http://home.comcast.net/~tom_forsyth/papers/fast_vert_cache_opt.html.

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.