Commit 5e49aeda authored by Jan Möbius's avatar Jan Möbius

Next try for documentation fix

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15062 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9f0de563
......@@ -55,12 +55,14 @@ namespace ACG
//=============================================================================
GPUCacheOptimizer::GPUCacheOptimizer(unsigned int NumTris, unsigned int NumVerts, unsigned int IndexSize,
const void* pIndices)
: m_NumVerts(NumVerts), m_NumTris(NumTris), m_IndexSize(IndexSize),
m_pIndices(pIndices), m_NumTransformations(0)
GPUCacheOptimizer::GPUCacheOptimizer( unsigned int NumTris, unsigned int NumVerts, unsigned int IndexSize, const void* pIndices) :
m_NumVerts(NumVerts),
m_NumTris(NumTris),
m_IndexSize(IndexSize),
m_pIndices(pIndices),
m_NumTransformations(0)
{
m_pTriMap = new unsigned int[m_NumTris];
m_pTriMap = new unsigned int[m_NumTris];
}
GPUCacheOptimizer::~GPUCacheOptimizer(void)
......
......@@ -127,12 +127,14 @@ public:
*
* pseudo code (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]
* \endcode
*
* @param NumTris Number of triangles
* @param NumVerts Number of vertices
......@@ -244,14 +246,14 @@ protected:
/** \class GPUCacheOptimizerTipsify GPUCacheOptimizer.hh
Implementation of "Fast Triangle Reordering for Vertex Locality and Reduced Overdraw" by Sander et. al.
http://www.cs.princeton.edu/gfx/pubs/Sander_2007_%3ETR/index.php
http://www.cs.princeton.edu/gfx/pubs/Sander_2007_%3ETR/index.php
*/
class ACGDLLEXPORT GPUCacheOptimizerTipsify : public GPUCacheOptimizer
{
public:
/** \brief The actual computation happens here in this constructor.
/** \brief The actual computation happens here in this constructor
*
* @param CacheSize number of entries in the vertex cache
* @param NumTris Number of triangles
......@@ -259,8 +261,11 @@ public:
* @param IndexSize size in bytes of one index: 1, 2, 4 supported
* @param pIndices index buffer
*/
GPUCacheOptimizerTipsify(unsigned int CacheSize, unsigned int NumTris, unsigned int NumVerts,
unsigned int IndexSize, const void* pIndices);
GPUCacheOptimizerTipsify(unsigned int CacheSize,
unsigned int NumTris,
unsigned int NumVerts,
unsigned int IndexSize,
const void* pIndices);
private:
......
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