GLES2N64 (from mupen64plus-ae) plugin. Compile and run on the OpenPandora
[mupen64plus-pandora.git] / source / gles2n64 / src / DepthBuffer.h
diff --git a/source/gles2n64/src/DepthBuffer.h b/source/gles2n64/src/DepthBuffer.h
new file mode 100644 (file)
index 0000000..dd7d5e6
--- /dev/null
@@ -0,0 +1,28 @@
+#ifndef DEPTHBUFFER_H
+#define DEPTHBUFFER_H
+
+#include "Types.h"
+
+struct DepthBuffer
+{
+    DepthBuffer *higher, *lower;
+
+    u32 address, cleared;
+};
+
+struct DepthBufferInfo
+{
+    DepthBuffer *top, *bottom, *current;
+    int numBuffers;
+};
+
+extern DepthBufferInfo depthBuffer;
+
+void DepthBuffer_Init();
+void DepthBuffer_Destroy();
+void DepthBuffer_SetBuffer( u32 address );
+void DepthBuffer_RemoveBuffer( u32 address );
+DepthBuffer *DepthBuffer_FindBuffer( u32 address );
+
+#endif
+