PANDORA: Make GLES context compatible with latest driver (FB only, no X11)
[mupen64plus-pandora.git] / source / gles2n64 / src / DepthBuffer.h
CommitLineData
34cf4058 1#ifndef DEPTHBUFFER_H
2#define DEPTHBUFFER_H
3
4#include "Types.h"
5
6struct DepthBuffer
7{
8 DepthBuffer *higher, *lower;
9
10 u32 address, cleared;
11};
12
13struct DepthBufferInfo
14{
15 DepthBuffer *top, *bottom, *current;
16 int numBuffers;
17};
18
19extern DepthBufferInfo depthBuffer;
20
21void DepthBuffer_Init();
22void DepthBuffer_Destroy();
23void DepthBuffer_SetBuffer( u32 address );
24void DepthBuffer_RemoveBuffer( u32 address );
25DepthBuffer *DepthBuffer_FindBuffer( u32 address );
26
27#endif
28