mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
OpcodeDecoding: Convert #defines into enum constants
Gets several constants out of global scope.
This commit is contained in:
parent
22fbcc67fc
commit
d9d069e024
7 changed files with 110 additions and 97 deletions
|
@ -33,29 +33,29 @@ void SetupUnit::SetupVertex()
|
|||
{
|
||||
switch (m_PrimType)
|
||||
{
|
||||
case GX_DRAW_QUADS:
|
||||
case OpcodeDecoder::GX_DRAW_QUADS:
|
||||
SetupQuad();
|
||||
break;
|
||||
case GX_DRAW_QUADS_2:
|
||||
case OpcodeDecoder::GX_DRAW_QUADS_2:
|
||||
WARN_LOG(VIDEO, "Non-standard primitive drawing command GL_DRAW_QUADS_2");
|
||||
SetupQuad();
|
||||
break;
|
||||
case GX_DRAW_TRIANGLES:
|
||||
case OpcodeDecoder::GX_DRAW_TRIANGLES:
|
||||
SetupTriangle();
|
||||
break;
|
||||
case GX_DRAW_TRIANGLE_STRIP:
|
||||
case OpcodeDecoder::GX_DRAW_TRIANGLE_STRIP:
|
||||
SetupTriStrip();
|
||||
break;
|
||||
case GX_DRAW_TRIANGLE_FAN:
|
||||
case OpcodeDecoder::GX_DRAW_TRIANGLE_FAN:
|
||||
SetupTriFan();
|
||||
break;
|
||||
case GX_DRAW_LINES:
|
||||
case OpcodeDecoder::GX_DRAW_LINES:
|
||||
SetupLine();
|
||||
break;
|
||||
case GX_DRAW_LINE_STRIP:
|
||||
case OpcodeDecoder::GX_DRAW_LINE_STRIP:
|
||||
SetupLineStrip();
|
||||
break;
|
||||
case GX_DRAW_POINTS:
|
||||
case OpcodeDecoder::GX_DRAW_POINTS:
|
||||
SetupPoint();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue