Commit 87fdc971 authored by Jan Möbius's avatar Jan Möbius

Documentation again

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15064 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e0f5443f
......@@ -116,24 +116,23 @@ public:
*/
static void OptimizeVertices(unsigned int NumTris, unsigned int NumVerts, unsigned int IndexSize,
const void* pIndices, unsigned int* pVertMap);
/* this function is declared static to be able to operate on the whole model
instead of just a subset of it
example use : 1. optimize triangle list per material group
2. optimize vertex buffer on whole mesh independently of material subsets
*/
// this function is declared static to be able to operate on the whole model
// instead of just a subset of it
// example use:
// - optimize triangle list per material group
// - optimize vertex buffer on whole mesh independently of material subsets
/** \brief Applies the remap table of OptimizeVertices to a vertex and index buffer
*
* pseudo code (manual remapping):
*
* Pseudo code for manual remapping
* \code
* for each index i in IndexBuffer:
* IndexBuffer[i] = VertMap[IndexBuffer[i]]
* TmpBuf = VertexBuffer
* for each vertex v in TmpBuf
* if (VertMap[v] != 0xFFFFFFFF)
* VertexBuffer[VertMap[v]] = TmpBuf[v]
* for each index i in IndexBuffer:
* IndexBuffer[i] = VertMap[IndexBuffer[i]]
* TmpBuf = VertexBuffer
* for each vertex v in TmpBuf
* if (VertMap[v] != 0xFFFFFFFF)
* VertexBuffer[VertMap[v]] = TmpBuf[v]
* \endcode
*
* @param NumTris Number of triangles
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment