From d9d069e02464476cf2bcf7bd6389f3c8f2a8c21e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 7 Feb 2017 23:11:04 -0500 Subject: OpcodeDecoding: Convert #defines into enum constants Gets several constants out of global scope. --- Source/Core/VideoCommon/IndexGenerator.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'Source/Core/VideoCommon/IndexGenerator.cpp') 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; - primitive_table[GX_DRAW_QUADS_2] = IndexGenerator::AddQuads_nonstandard; - primitive_table[GX_DRAW_TRIANGLES] = IndexGenerator::AddList; - primitive_table[GX_DRAW_TRIANGLE_STRIP] = IndexGenerator::AddStrip; - primitive_table[GX_DRAW_TRIANGLE_FAN] = IndexGenerator::AddFan; + primitive_table[OpcodeDecoder::GX_DRAW_QUADS] = AddQuads; + primitive_table[OpcodeDecoder::GX_DRAW_QUADS_2] = AddQuads_nonstandard; + primitive_table[OpcodeDecoder::GX_DRAW_TRIANGLES] = AddList; + primitive_table[OpcodeDecoder::GX_DRAW_TRIANGLE_STRIP] = AddStrip; + primitive_table[OpcodeDecoder::GX_DRAW_TRIANGLE_FAN] = AddFan; } else { - primitive_table[GX_DRAW_QUADS] = IndexGenerator::AddQuads; - primitive_table[GX_DRAW_QUADS_2] = IndexGenerator::AddQuads_nonstandard; - primitive_table[GX_DRAW_TRIANGLES] = IndexGenerator::AddList; - primitive_table[GX_DRAW_TRIANGLE_STRIP] = IndexGenerator::AddStrip; - primitive_table[GX_DRAW_TRIANGLE_FAN] = IndexGenerator::AddFan; + primitive_table[OpcodeDecoder::GX_DRAW_QUADS] = AddQuads; + primitive_table[OpcodeDecoder::GX_DRAW_QUADS_2] = AddQuads_nonstandard; + primitive_table[OpcodeDecoder::GX_DRAW_TRIANGLES] = AddList; + primitive_table[OpcodeDecoder::GX_DRAW_TRIANGLE_STRIP] = AddStrip; + primitive_table[OpcodeDecoder::GX_DRAW_TRIANGLE_FAN] = AddFan; } - 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) -- cgit v1.2.3