1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00
GLideN64/DepthBuffer.h

31 lines
530 B
C
Raw Normal View History

#ifndef DEPTHBUFFER_H
#define DEPTHBUFFER_H
#include "Types.h"
struct DepthBuffer
{
DepthBuffer *higher, *lower;
u32 address, width;
2013-06-01 13:10:30 +00:00
GLuint renderbuf;
2013-10-30 06:07:24 +00:00
CachedTexture *depth_texture;
2013-11-12 07:35:26 +00:00
GLuint fbo;
};
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