GLES2N64 (from mupen64plus-ae) plugin. Compile and run on the OpenPandora
[mupen64plus-pandora.git] / source / gles2n64 / src / DepthBuffer.h
1 #ifndef DEPTHBUFFER_H
2 #define DEPTHBUFFER_H
3
4 #include "Types.h"
5
6 struct DepthBuffer
7 {
8     DepthBuffer *higher, *lower;
9
10     u32 address, cleared;
11 };
12
13 struct DepthBufferInfo
14 {
15     DepthBuffer *top, *bottom, *current;
16     int numBuffers;
17 };
18
19 extern DepthBufferInfo depthBuffer;
20
21 void DepthBuffer_Init();
22 void DepthBuffer_Destroy();
23 void DepthBuffer_SetBuffer( u32 address );
24 void DepthBuffer_RemoveBuffer( u32 address );
25 DepthBuffer *DepthBuffer_FindBuffer( u32 address );
26
27 #endif
28