summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2013-02-21 19:10:00 -0600
committerJordan Woyak <jordan.woyak@gmail.com>2013-02-21 19:11:07 -0600
commit368c78dd5c167208454c8c9ac8f458130f23740b (patch)
tree9a29adc3a6389fdd19deb240453d8832944b7df8 /Source/Core/VideoCommon/Src/VertexManagerBase.cpp
parent677c6229ad4f0313a2346eb5ed4ae777ce02882d (diff)
IndexGenerator cleanup.
Diffstat (limited to 'Source/Core/VideoCommon/Src/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/VertexManagerBase.cpp32
1 files changed, 2 insertions, 30 deletions
diff --git a/Source/Core/VideoCommon/Src/VertexManagerBase.cpp b/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
index e36b03d1b1..af4d646cc3 100644
--- a/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
+++ b/Source/Core/VideoCommon/Src/VertexManagerBase.cpp
@@ -59,34 +59,6 @@ VertexManager::~VertexManager()
ResetBuffer();
}
-void VertexManager::AddIndices(int primitive, int numVertices)
-{
- //switch (primitive)
- //{
- //case GX_DRAW_QUADS: IndexGenerator::AddQuads(numVertices); break;
- //case GX_DRAW_TRIANGLES: IndexGenerator::AddList(numVertices); break;
- //case GX_DRAW_TRIANGLE_STRIP: IndexGenerator::AddStrip(numVertices); break;
- //case GX_DRAW_TRIANGLE_FAN: IndexGenerator::AddFan(numVertices); break;
- //case GX_DRAW_LINES: IndexGenerator::AddLineList(numVertices); break;
- //case GX_DRAW_LINE_STRIP: IndexGenerator::AddLineStrip(numVertices); break;
- //case GX_DRAW_POINTS: IndexGenerator::AddPoints(numVertices); break;
- //}
-
- static void (*const primitive_table[])(int) =
- {
- IndexGenerator::AddQuads,
- NULL,
- IndexGenerator::AddList,
- IndexGenerator::AddStrip,
- IndexGenerator::AddFan,
- IndexGenerator::AddLineList,
- IndexGenerator::AddLineStrip,
- IndexGenerator::AddPoints,
- };
-
- primitive_table[primitive](numVertices);
-}
-
int VertexManager::GetRemainingSize()
{
return (int)(s_pEndBufferPointer - s_pCurBufferPointer);
@@ -119,7 +91,7 @@ int VertexManager::GetRemainingVertices(int primitive)
}
}
-void VertexManager::AddVertices(int primitive, int numVertices)
+void VertexManager::AddVertices(int primitive, u32 numVertices)
{
if (numVertices <= 0)
return;
@@ -132,7 +104,7 @@ void VertexManager::AddVertices(int primitive, int numVertices)
ADDSTAT(stats.thisFrame.numPrims, numVertices);
INCSTAT(stats.thisFrame.numPrimitiveJoins);
- AddIndices(primitive, numVertices);
+ IndexGenerator::AddIndices(primitive, numVertices);
}
void VertexManager::Flush()