summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/IndexGenerator.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-02-07 23:11:04 -0500
committerLioncash <mathew1800@gmail.com>2017-02-08 00:05:17 -0500
commitd9d069e02464476cf2bcf7bd6389f3c8f2a8c21e (patch)
tree416365cb8c229befc916b810f495eeb67887db1d /Source/Core/VideoCommon/IndexGenerator.cpp
parent22fbcc67fca2496e800151573ebe4fae8d9218a3 (diff)
OpcodeDecoding: Convert #defines into enum constants
Gets several constants out of global scope.
Diffstat (limited to 'Source/Core/VideoCommon/IndexGenerator.cpp')
-rw-r--r--Source/Core/VideoCommon/IndexGenerator.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/Source/Core/VideoCommon/IndexGenerator.cpp b/Source/Core/VideoCommon/IndexGenerator.cpp
index c2c85ca857..79dbc92597 100644
--- a/Source/Core/VideoCommon/IndexGenerator.cpp
+++ b/Source/Core/VideoCommon/IndexGenerator.cpp
@@ -24,23 +24,23 @@ void IndexGenerator::Init()
{
if (g_Config.backend_info.bSupportsPrimitiveRestart)
{
- primitive_table[GX_DRAW_QUADS] = IndexGenerator::AddQuads<true>;
- primitive_table[GX_DRAW_QUADS_2] = IndexGenerator::AddQuads_nonstandard<true>;
- primitive_table[GX_DRAW_TRIANGLES] = IndexGenerator::AddList<true>;
- primitive_table[GX_DRAW_TRIANGLE_STRIP] = IndexGenerator::AddStrip<true>;
- primitive_table[GX_DRAW_TRIANGLE_FAN] = IndexGenerator::AddFan<true>;
+ primitive_table[OpcodeDecoder::GX_DRAW_QUADS] = AddQuads<true>;
+ primitive_table[OpcodeDecoder::GX_DRAW_QUADS_2] = AddQuads_nonstandard<true>;
+ primitive_table[OpcodeDecoder::GX_DRAW_TRIANGLES] = AddList<true>;
+ primitive_table[OpcodeDecoder::GX_DRAW_TRIANGLE_STRIP] = AddStrip<true>;
+ primitive_table[OpcodeDecoder::GX_DRAW_TRIANGLE_FAN] = AddFan<true>;
}
else
{
- primitive_table[GX_DRAW_QUADS] = IndexGenerator::AddQuads<false>;
- primitive_table[GX_DRAW_QUADS_2] = IndexGenerator::AddQuads_nonstandard<false>;
- primitive_table[GX_DRAW_TRIANGLES] = IndexGenerator::AddList<false>;
- primitive_table[GX_DRAW_TRIANGLE_STRIP] = IndexGenerator::AddStrip<false>;
- primitive_table[GX_DRAW_TRIANGLE_FAN] = IndexGenerator::AddFan<false>;
+ primitive_table[OpcodeDecoder::GX_DRAW_QUADS] = AddQuads<false>;
+ primitive_table[OpcodeDecoder::GX_DRAW_QUADS_2] = AddQuads_nonstandard<false>;
+ primitive_table[OpcodeDecoder::GX_DRAW_TRIANGLES] = AddList<false>;
+ primitive_table[OpcodeDecoder::GX_DRAW_TRIANGLE_STRIP] = AddStrip<false>;
+ primitive_table[OpcodeDecoder::GX_DRAW_TRIANGLE_FAN] = AddFan<false>;
}
- primitive_table[GX_DRAW_LINES] = &IndexGenerator::AddLineList;
- primitive_table[GX_DRAW_LINE_STRIP] = &IndexGenerator::AddLineStrip;
- primitive_table[GX_DRAW_POINTS] = &IndexGenerator::AddPoints;
+ primitive_table[OpcodeDecoder::GX_DRAW_LINES] = &AddLineList;
+ primitive_table[OpcodeDecoder::GX_DRAW_LINE_STRIP] = &AddLineStrip;
+ primitive_table[OpcodeDecoder::GX_DRAW_POINTS] = &AddPoints;
}
void IndexGenerator::Start(u16* Indexptr)