diff options
author | Brian Paul <[email protected]> | 2005-02-09 03:50:30 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-02-09 03:50:30 +0000 |
commit | f0bbbf66b8ab846ae55adf2f66941f05b5500071 (patch) | |
tree | b46d4853e87b6a34c166b09c9a4c84fd9d6a41d7 /src/mesa/main/fbobject.h | |
parent | d863424032deb7c6bcb3a0b906be29b573f18c2d (diff) |
implement the 'completeness' tests
Diffstat (limited to 'src/mesa/main/fbobject.h')
-rw-r--r-- | src/mesa/main/fbobject.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mesa/main/fbobject.h b/src/mesa/main/fbobject.h index 8b5fd5d1fc2..3619d0a2963 100644 --- a/src/mesa/main/fbobject.h +++ b/src/mesa/main/fbobject.h @@ -33,6 +33,8 @@ struct gl_render_buffer_object GLuint Name; GLuint Width, Height; GLenum InternalFormat; + GLenum _BaseFormat; /* Either GL_RGB, GL_RGBA, GL_DEPTH_COMPONENT or */ + /* GL_STENCIL_INDEX. */ GLvoid *Data; }; @@ -45,8 +47,9 @@ struct gl_render_buffer_attachment /* IF Type == GL_TEXTURE: */ struct gl_texture_object *Texture; GLuint TextureLevel; - GLuint CubeMapFace; /* 0 .. 5, for Cube map textures */ + GLuint CubeMapFace; /* 0 .. 5, for cube map textures */ GLuint Zoffset; /* for 3D textures */ + GLboolean Complete; }; @@ -55,9 +58,17 @@ struct gl_frame_buffer_object GLint RefCount; GLuint Name; + GLenum Status; + struct gl_render_buffer_attachment ColorAttachment[MAX_COLOR_ATTACHMENTS]; struct gl_render_buffer_attachment DepthAttachment; struct gl_render_buffer_attachment StencilAttachment; + + /* In unextended OpenGL, these vars are part of the GL_COLOR_BUFFER + * attribute group and GL_PIXEL attribute group, respectively. + */ + GLenum DrawBuffer[MAX_DRAW_BUFFERS]; + GLenum ReadBuffer; }; |