diff options
author | Brian Paul <[email protected]> | 2005-02-07 05:08:24 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-02-07 05:08:24 +0000 |
commit | 3deaa01c2bd576ae81fc6d3ea67c583cb3c22159 (patch) | |
tree | 720bcae66b5456b4a88e52c35c03274332b2acca /src/mesa/main/fbobject.h | |
parent | 1e42244e82e387282849b0182bb71b6803ac27d3 (diff) |
additional work on GL_EXT_framebuffer_object
Diffstat (limited to 'src/mesa/main/fbobject.h')
-rw-r--r-- | src/mesa/main/fbobject.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/mesa/main/fbobject.h b/src/mesa/main/fbobject.h index 7105935aa9d..222c58d00a2 100644 --- a/src/mesa/main/fbobject.h +++ b/src/mesa/main/fbobject.h @@ -27,6 +27,38 @@ #define FBOBJECT_H +struct gl_render_buffer_object +{ + GLint RefCount; + GLuint Name; + GLuint Width, Height; +}; + + +struct gl_render_buffer_attachment +{ + GLenum Type; /* GL_NONE or GL_TEXTURE or GL_RENDERBUFFER_EXT */ + /* IF Type == GL_RENDERBUFFER_EXT: */ + struct gl_render_buffer_object *Renderbuffer; + /* IF Type == GL_TEXTURE: */ + struct gl_texture_object *Texture; + GLuint TextureLevel; + GLuint CubeMapFace; /* 0 .. 5, for Cube map textures */ + GLuint Zoffset; /* for 3D textures */ +}; + + +struct gl_frame_buffer_object +{ + GLint RefCount; + GLuint Name; + + struct gl_render_buffer_attachment ColorAttachment[MAX_COLOR_ATTACHMENTS]; + struct gl_render_buffer_attachment DepthAttachment; + struct gl_render_buffer_attachment StencilAttachment; +}; + + extern GLboolean _mesa_IsRenderbufferEXT(GLuint renderbuffer); |