diff options
| author | Matthew Parlane <parlane@gmail.com> | 2017-02-08 18:12:11 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-08 18:12:11 +1300 |
| commit | 691abc223bce85e9857942214748dc6bba4216db (patch) | |
| tree | 593ff2dec789103aec0ee2daf6c5a72dd980fcb1 /Source/Core/VideoCommon/IndexGenerator.cpp | |
| parent | 5b7c0d86cdb240917503928cde0830f91e4de6fa (diff) | |
| parent | d9d069e02464476cf2bcf7bd6389f3c8f2a8c21e (diff) | |
Merge pull request #4859 from lioncash/opcodedecoder
OpcodeDecoding: Convert #defines into enum constants
Diffstat (limited to 'Source/Core/VideoCommon/IndexGenerator.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/IndexGenerator.cpp | 26 |
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) |
