aboutsummaryrefslogtreecommitdiff
path: root/GPU3D.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'GPU3D.cpp')
-rw-r--r--GPU3D.cpp21
1 files changed, 19 insertions, 2 deletions
diff --git a/GPU3D.cpp b/GPU3D.cpp
index c4b7ee8..81b2705 100644
--- a/GPU3D.cpp
+++ b/GPU3D.cpp
@@ -20,24 +20,41 @@
#include <string.h>
#include "NDS.h"
#include "GPU.h"
+#include "FIFO.h"
namespace GPU3D
{
+typedef struct
+{
+ u8 Command;
+ u32 Param;
+
+} CmdFIFOEntry;
+
+FIFO<CmdFIFOEntry>* CmdFIFO;
+FIFO<CmdFIFOEntry>* CmdPIPE;
+
+
bool Init()
{
+ CmdFIFO = new FIFO<CmdFIFOEntry>(256);
+ CmdPIPE = new FIFO<CmdFIFOEntry>(4);
+
return true;
}
void DeInit()
{
- //
+ delete CmdFIFO;
+ delete CmdPIPE;
}
void Reset()
{
- //
+ CmdFIFO->Clear();
+ CmdPIPE->Clear();
}
}