Forward declarations, take two.

This commit is contained in:
Andrei Drexler 2011-03-15 03:21:10 +00:00
parent 36bf6c2d9e
commit 7e54ff2f4e

View file

@ -13,14 +13,14 @@ Can be either a zbuffer, a stencil buffer or a multisampled color buffer
=============== ===============
*/ */
typedef struct fboRenderBuffer_s { struct fboRenderBuffer_s {
GLuint id; GLuint id;
int internalFormat; int internalFormat;
int width; int width;
int height; int height;
qboolean msaa; qboolean msaa;
} fboRenderBuffer_t; };
typedef fboRenderBuffer_t fboZBuffer_t; typedef fboRenderBuffer_t fboZBuffer_t;
typedef fboRenderBuffer_t fboStencilBuffer_t; typedef fboRenderBuffer_t fboStencilBuffer_t;
@ -36,12 +36,12 @@ Otherwise, only the texture is initialized.
=============== ===============
*/ */
typedef struct fboColorBuffer_s { struct fboColorBuffer_s {
fboRenderBuffer_t *buf; fboRenderBuffer_t *buf;
image_t *tex; image_t *tex;
GLuint fboResolve[2]; GLuint fboResolve[2];
qboolean dirty; qboolean dirty;
} fboColorBuffer_t; };
/* /*
=============== ===============
@ -52,7 +52,7 @@ and an optional stencil buffer
=============== ===============
*/ */
typedef struct fbo_s { struct fbo_s {
GLuint id; GLuint id;
int numColorBufs; int numColorBufs;
@ -62,7 +62,7 @@ typedef struct fbo_s {
fboStencilBuffer_t* stencil; fboStencilBuffer_t* stencil;
char name[MAX_QPATH]; char name[MAX_QPATH];
} fbo_t; };
void R_FBO_InitRenderBuffer(fboRenderBuffer_t* buf) void R_FBO_InitRenderBuffer(fboRenderBuffer_t* buf)