2 * Mesa 3-D graphics library
5 * Copyright (C) 1999-2008 Brian Paul All Rights Reserved.
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"),
9 * to deal in the Software without restriction, including without limitation
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
11 * and/or sell copies of the Software, and to permit persons to whom the
12 * Software is furnished to do so, subject to the following conditions:
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 _mesa_init_fbobjects(GLcontext
*ctx
);
34 extern struct gl_framebuffer
*
35 _mesa_get_incomplete_framebuffer(void);
37 extern struct gl_renderbuffer
*
38 _mesa_lookup_renderbuffer(GLcontext
*ctx
, GLuint id
);
40 extern struct gl_framebuffer
*
41 _mesa_lookup_framebuffer(GLcontext
*ctx
, GLuint id
);
43 extern struct gl_renderbuffer_attachment
*
44 _mesa_get_attachment(GLcontext
*ctx
, struct gl_framebuffer
*fb
,
49 _mesa_remove_attachment(GLcontext
*ctx
,
50 struct gl_renderbuffer_attachment
*att
);
53 _mesa_set_texture_attachment(GLcontext
*ctx
,
54 struct gl_framebuffer
*fb
,
55 struct gl_renderbuffer_attachment
*att
,
56 struct gl_texture_object
*texObj
,
57 GLenum texTarget
, GLuint level
, GLuint zoffset
);
60 _mesa_set_renderbuffer_attachment(GLcontext
*ctx
,
61 struct gl_renderbuffer_attachment
*att
,
62 struct gl_renderbuffer
*rb
);
65 _mesa_framebuffer_renderbuffer(GLcontext
*ctx
, struct gl_framebuffer
*fb
,
66 GLenum attachment
, struct gl_renderbuffer
*rb
);
69 _mesa_test_framebuffer_completeness(GLcontext
*ctx
, struct gl_framebuffer
*fb
);
72 _mesa_base_fbo_format(GLcontext
*ctx
, GLenum internalFormat
);
74 extern GLboolean GLAPIENTRY
75 _mesa_IsRenderbufferEXT(GLuint renderbuffer
);
77 extern void GLAPIENTRY
78 _mesa_BindRenderbufferEXT(GLenum target
, GLuint renderbuffer
);
80 extern void GLAPIENTRY
81 _mesa_DeleteRenderbuffersEXT(GLsizei n
, const GLuint
*renderbuffers
);
83 extern void GLAPIENTRY
84 _mesa_GenRenderbuffersEXT(GLsizei n
, GLuint
*renderbuffers
);
86 extern void GLAPIENTRY
87 _mesa_RenderbufferStorageEXT(GLenum target
, GLenum internalformat
,
88 GLsizei width
, GLsizei height
);
90 extern void GLAPIENTRY
91 _mesa_RenderbufferStorageMultisample(GLenum target
, GLsizei samples
,
92 GLenum internalformat
,
93 GLsizei width
, GLsizei height
);
95 extern void GLAPIENTRY
96 _es_RenderbufferStorageEXT(GLenum target
, GLenum internalFormat
,
97 GLsizei width
, GLsizei height
);
99 extern void GLAPIENTRY
100 _mesa_EGLImageTargetRenderbufferStorageOES(GLenum target
, GLeglImageOES image
);
102 extern void GLAPIENTRY
103 _mesa_GetRenderbufferParameterivEXT(GLenum target
, GLenum pname
,
106 extern GLboolean GLAPIENTRY
107 _mesa_IsFramebufferEXT(GLuint framebuffer
);
109 extern void GLAPIENTRY
110 _mesa_BindFramebufferEXT(GLenum target
, GLuint framebuffer
);
112 extern void GLAPIENTRY
113 _mesa_DeleteFramebuffersEXT(GLsizei n
, const GLuint
*framebuffers
);
115 extern void GLAPIENTRY
116 _mesa_GenFramebuffersEXT(GLsizei n
, GLuint
*framebuffers
);
118 extern GLenum GLAPIENTRY
119 _mesa_CheckFramebufferStatusEXT(GLenum target
);
121 extern void GLAPIENTRY
122 _mesa_FramebufferTexture1DEXT(GLenum target
, GLenum attachment
,
123 GLenum textarget
, GLuint texture
, GLint level
);
125 extern void GLAPIENTRY
126 _mesa_FramebufferTexture2DEXT(GLenum target
, GLenum attachment
,
127 GLenum textarget
, GLuint texture
, GLint level
);
129 extern void GLAPIENTRY
130 _mesa_FramebufferTexture3DEXT(GLenum target
, GLenum attachment
,
131 GLenum textarget
, GLuint texture
,
132 GLint level
, GLint zoffset
);
134 extern void GLAPIENTRY
135 _mesa_FramebufferTextureLayerEXT(GLenum target
, GLenum attachment
,
136 GLuint texture
, GLint level
, GLint layer
);
138 extern void GLAPIENTRY
139 _mesa_FramebufferRenderbufferEXT(GLenum target
, GLenum attachment
,
140 GLenum renderbuffertarget
,
141 GLuint renderbuffer
);
143 extern void GLAPIENTRY
144 _mesa_GetFramebufferAttachmentParameterivEXT(GLenum target
, GLenum attachment
,
145 GLenum pname
, GLint
*params
);
147 extern void GLAPIENTRY
148 _mesa_GenerateMipmapEXT(GLenum target
);
151 extern void GLAPIENTRY
152 _mesa_BlitFramebufferEXT(GLint srcX0
, GLint srcY0
, GLint srcX1
, GLint srcY1
,
153 GLint dstX0
, GLint dstY0
, GLint dstX1
, GLint dstY1
,
154 GLbitfield mask
, GLenum filter
);
156 extern void GLAPIENTRY
157 _mesa_FramebufferTextureARB(GLenum target
, GLenum attachment
,
158 GLuint texture
, GLint level
);
160 extern void GLAPIENTRY
161 _mesa_FramebufferTextureFaceARB(GLenum target
, GLenum attachment
,
162 GLuint texture
, GLint level
, GLenum face
);
165 #endif /* FBOBJECT_H */