/[pcsx2_0.9.7]/trunk/tools/GSDumpGUI/Library/GSDump/GSData/GIFPacket/GIFPrim.cs
ViewVC logotype

Contents of /trunk/tools/GSDumpGUI/Library/GSDump/GSData/GIFPacket/GIFPrim.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 313 - (show annotations) (download)
Sun Dec 26 16:21:07 2010 UTC (9 years, 9 months ago) by william
File size: 1232 byte(s)
Auto Commited Import of: pcsx2-0.9.7-DEBUG (upstream: v0.9.7.4151 local: v0.9.7.293-latest) in ./trunk
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4
5 namespace GSDumpGUI
6 {
7 public class GIFPrim
8 {
9 public Int32 Prim;
10 public Int32 IIP;
11 public Int32 TME;
12 public Int32 FGE;
13 public Int32 ABE;
14 public Int32 AA1;
15 public Int32 FST;
16 public Int32 CTXT;
17 public Int32 FIX;
18
19 static internal GIFPrim ExtractGIFPrim(Int32 rawValue)
20 {
21 GIFPrim pri = new GIFPrim();
22 pri.Prim = (rawValue & 0x007);
23 pri.IIP = (rawValue & 0x008) >> 3;
24 pri.TME = (rawValue & 0x010) >> 4;
25 pri.FGE = (rawValue & 0x020) >> 5;
26 pri.ABE = (rawValue & 0x040) >> 6;
27 pri.AA1 = (rawValue & 0x080) >> 7;
28 pri.FST = (rawValue & 0x100) >> 8;
29 pri.CTXT = (rawValue & 0x200) >> 9;
30 pri.FIX = (rawValue & 0x400) >> 10;
31 return pri;
32 }
33 }
34
35 public enum GS_PRIM
36 {
37 GS_POINTLIST = 0,
38 GS_LINELIST = 1,
39 GS_LINESTRIP = 2,
40 GS_TRIANGLELIST = 3,
41 GS_TRIANGLESTRIP = 4,
42 GS_TRIANGLEFAN = 5,
43 GS_SPRITE = 6,
44 GS_INVALID = 7,
45 }
46 }

  ViewVC Help
Powered by ViewVC 1.1.22