1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00
GLideN64/DepthBuffer.h
2015-05-13 10:09:33 +06:00

29 lines
486 B
C

#ifndef DEPTHBUFFER_H
#define DEPTHBUFFER_H
#include "Types.h"
struct DepthBuffer
{
DepthBuffer *higher, *lower;
u32 address, cleared;
GLuint renderbuf;
};
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