summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/OpcodeDecoding.h
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2008-08-21 17:57:26 +0000
committerhrydgard <hrydgard@gmail.com>2008-08-21 17:57:26 +0000
commit92031705cd6c43423e915d05b761c7f71eb0c82d (patch)
tree42cf0105d462aadc4b5320184c6bb653964fd1d3 /Source/Core/VideoCommon/Src/OpcodeDecoding.h
parent3ef0eb979d7a6451ec74c9233af0487142e71896 (diff)
Forgot some defines.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@256 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/OpcodeDecoding.h')
-rw-r--r--Source/Core/VideoCommon/Src/OpcodeDecoding.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/OpcodeDecoding.h b/Source/Core/VideoCommon/Src/OpcodeDecoding.h
index 17be936dc9..3219714887 100644
--- a/Source/Core/VideoCommon/Src/OpcodeDecoding.h
+++ b/Source/Core/VideoCommon/Src/OpcodeDecoding.h
@@ -35,6 +35,15 @@
#define GX_PRIMITIVE_SHIFT 3
#define GX_VAT_MASK 0x07
+//these are defined 1/8th of their real values and without their top bit
+#define GX_DRAW_QUADS 0x0 //0x80
+#define GX_DRAW_TRIANGLES 0x2 //0x90
+#define GX_DRAW_TRIANGLE_STRIP 0x3 //0x98
+#define GX_DRAW_TRIANGLE_FAN 0x4 //0xA0
+#define GX_DRAW_LINES 0x5 //0xA8
+#define GX_DRAW_LINE_STRIP 0x6 //0xB0
+#define GX_DRAW_POINTS 0x7 //0xB8
+
void OpcodeDecoder_Init();
void OpcodeDecoder_Shutdown();
void OpcodeDecoder_Run();