Chromium Code Reviews| Index: gpu/GLES2/gl2ext.h |
| =================================================================== |
| --- gpu/GLES2/gl2ext.h (revision 56699) |
| +++ gpu/GLES2/gl2ext.h (working copy) |
| @@ -798,6 +798,77 @@ |
| typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask); |
| #endif |
| +/* GL_EXT_framebuffer_mutlisample */ |
|
apatrick
2010/08/23 18:03:44
mutlisample -> multisample
|
| +#ifndef GL_EXT_framebuffer_mutlisample |
| +#define GL_EXT_framebuffer_mutlisample 1 |
| + |
| +#ifndef GL_DRAW_FRAMEBUFFER_BINDING |
| +#define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6 |
| +#endif |
| +#ifndef GL_DRAW_FRAMEBUFFER_BINDING_EXT |
| +#define GL_DRAW_FRAMEBUFFER_BINDING_EXT GL_DRAW_FRAMEBUFFER_BINDING |
| +#endif |
| +#ifndef GL_FRAMEBUFFER_BINDING |
| +#define GL_FRAMEBUFFER_BINDING 0x8CA6 |
| +#endif |
| +#ifndef GL_FRAMEBUFFER_BINDING_EXT |
| +#define GL_FRAMEBUFFER_BINDING_EXT GL_FRAMEBUFFER_BINDING |
| +#endif |
| +#ifndef GL_RENDERBUFFER_BINDING |
| +#define GL_RENDERBUFFER_BINDING 0x8CA7 |
| +#endif |
| +#ifndef GL_RENDERBUFFER_BINDING_EXT |
| +#define GL_RENDERBUFFER_BINDING_EXT GL_RENDERBUFFER_BINDING |
| +#endif |
| +#ifndef GL_READ_FRAMEBUFFER |
| +#define GL_READ_FRAMEBUFFER 0x8CA8 |
| +#endif |
| +#ifndef GL_READ_FRAMEBUFFER_EXT |
| +#define GL_READ_FRAMEBUFFER_EXT GL_READ_FRAMEBUFFER |
| +#endif |
| +#ifndef GL_DRAW_FRAMEBUFFER |
| +#define GL_DRAW_FRAMEBUFFER 0x8CA9 |
| +#endif |
| +#ifndef GL_DRAW_FRAMEBUFFER_EXT |
| +#define GL_DRAW_FRAMEBUFFER_EXT GL_DRAW_FRAMEBUFFER |
| +#endif |
| +#ifndef GL_READ_FRAMEBUFFER_BINDING |
| +#define GL_READ_FRAMEBUFFER_BINDING 0x8CAA |
| +#endif |
| +#ifndef GL_READ_FRAMEBUFFER_BINDING_EXT |
| +#define GL_READ_FRAMEBUFFER_BINDING_EXT GL_READ_FRAMEBUFFER_BINDING |
| +#endif |
| +#ifndef GL_RENDERBUFFER_SAMPLES |
| +#define GL_RENDERBUFFER_SAMPLES 0x8CAB |
| +#endif |
| +#ifndef GL_RENDERBUFFER_SAMPLES_EXT |
| +#define GL_RENDERBUFFER_SAMPLES_EXT GL_RENDERBUFFER_SAMPLES |
| +#endif |
| +#ifndef GL_MAX_SAMPLES |
| +#define GL_MAX_SAMPLES 0x8D57 |
| +#endif |
| +#ifndef GL_MAX_SAMPLES_EXT |
| +#define GL_MAX_SAMPLES_EXT GL_MAX_SAMPLES |
| +#endif |
| +#ifndef GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE |
| +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56 |
| +#endif |
| +#ifndef GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT |
| +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE |
| +#endif |
| + |
| +#ifdef GL_GLEXT_PROTOTYPES |
| +#define glBlitFramebufferEXT GLES2_GET_FUN(BlitFramebufferEXT) |
| +#define glRenderbufferStorageMultisampleEXT GLES2_GET_FUN(RenderbufferStorageMultisampleEXT) |
| +#if !defined(GLES2_USE_CPP_BINDINGS) |
| +GL_APICALL void GL_APIENTRY glBlitFramebufferEXT (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); |
| +GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); |
| +#endif |
| +#endif |
| +typedef void (GL_APIENTRY PFNGLBLITFRAMEBUFFEREXT) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); |
| +typedef void (GL_APIENTRY PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXT) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); |
| +#endif |
| + |
| /* GL_CHROMIUM_map_sub */ |
| #ifndef GL_CHROMIUM_map_sub |
| #define GL_CHROMIUM_map_sub 1 |
| @@ -818,15 +889,13 @@ |
| GL_APICALL void* GL_APIENTRY glMapTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLenum access); |
| GL_APICALL void GL_APIENTRY glUnmapTexSubImage2D (const void* mem); |
| #endif |
| -#else |
| +#endif |
| typedef void* (GL_APIENTRYP PFNGLMAPBUFFERSUBDATA) (GLuint target, GLintptr offset, GLsizeiptr size, GLenum access); |
| typedef void (GL_APIENTRYP PFNGLUNMAPBUFFERSUBDATA) (const void* mem); |
| typedef void* (GL_APIENTRYP PFNGLMAPTEXSUBIMAGE2D) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLenum access); |
| typedef void (GL_APIENTRYP PFNGLUNMAPTEXSUBIMAGE2D) (const void* mem); |
| #endif |
| -#endif |
| - |
| #ifdef __cplusplus |
| } |
| #endif |