Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1383)

Side by Side Diff: gpu/GLES2/gl2ext.h

Issue 3122033: Adds support for EXT_framebuffer_multisample... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef __gl2ext_h_ 1 #ifndef __gl2ext_h_
2 #define __gl2ext_h_ 2 #define __gl2ext_h_
3 3
4 /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */ 4 /* $Revision: 10969 $ on $Date:: 2010-04-09 02:27:15 -0700 #$ */
5 5
6 #ifdef __cplusplus 6 #ifdef __cplusplus
7 extern "C" { 7 extern "C" {
8 #endif 8 #endif
9 9
10 /* 10 /*
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 #ifndef GL_QCOM_tiled_rendering 791 #ifndef GL_QCOM_tiled_rendering
792 #define GL_QCOM_tiled_rendering 1 792 #define GL_QCOM_tiled_rendering 1
793 #ifdef GL_GLEXT_PROTOTYPES 793 #ifdef GL_GLEXT_PROTOTYPES
794 GL_APICALL void GL_APIENTRY glStartTilingQCOM (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask); 794 GL_APICALL void GL_APIENTRY glStartTilingQCOM (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
795 GL_APICALL void GL_APIENTRY glEndTilingQCOM (GLbitfield preserveMask); 795 GL_APICALL void GL_APIENTRY glEndTilingQCOM (GLbitfield preserveMask);
796 #endif 796 #endif
797 typedef void (GL_APIENTRYP PFNGLSTARTTILINGQCOMPROC) (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask); 797 typedef void (GL_APIENTRYP PFNGLSTARTTILINGQCOMPROC) (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
798 typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask); 798 typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask);
799 #endif 799 #endif
800 800
801 /* GL_EXT_framebuffer_mutlisample */
apatrick 2010/08/23 18:03:44 mutlisample -> multisample
802 #ifndef GL_EXT_framebuffer_mutlisample
803 #define GL_EXT_framebuffer_mutlisample 1
804
805 #ifndef GL_DRAW_FRAMEBUFFER_BINDING
806 #define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6
807 #endif
808 #ifndef GL_DRAW_FRAMEBUFFER_BINDING_EXT
809 #define GL_DRAW_FRAMEBUFFER_BINDING_EXT GL_DRAW_FRAMEBUFFER_BINDING
810 #endif
811 #ifndef GL_FRAMEBUFFER_BINDING
812 #define GL_FRAMEBUFFER_BINDING 0x8CA6
813 #endif
814 #ifndef GL_FRAMEBUFFER_BINDING_EXT
815 #define GL_FRAMEBUFFER_BINDING_EXT GL_FRAMEBUFFER_BINDING
816 #endif
817 #ifndef GL_RENDERBUFFER_BINDING
818 #define GL_RENDERBUFFER_BINDING 0x8CA7
819 #endif
820 #ifndef GL_RENDERBUFFER_BINDING_EXT
821 #define GL_RENDERBUFFER_BINDING_EXT GL_RENDERBUFFER_BINDING
822 #endif
823 #ifndef GL_READ_FRAMEBUFFER
824 #define GL_READ_FRAMEBUFFER 0x8CA8
825 #endif
826 #ifndef GL_READ_FRAMEBUFFER_EXT
827 #define GL_READ_FRAMEBUFFER_EXT GL_READ_FRAMEBUFFER
828 #endif
829 #ifndef GL_DRAW_FRAMEBUFFER
830 #define GL_DRAW_FRAMEBUFFER 0x8CA9
831 #endif
832 #ifndef GL_DRAW_FRAMEBUFFER_EXT
833 #define GL_DRAW_FRAMEBUFFER_EXT GL_DRAW_FRAMEBUFFER
834 #endif
835 #ifndef GL_READ_FRAMEBUFFER_BINDING
836 #define GL_READ_FRAMEBUFFER_BINDING 0x8CAA
837 #endif
838 #ifndef GL_READ_FRAMEBUFFER_BINDING_EXT
839 #define GL_READ_FRAMEBUFFER_BINDING_EXT GL_READ_FRAMEBUFFER_BINDING
840 #endif
841 #ifndef GL_RENDERBUFFER_SAMPLES
842 #define GL_RENDERBUFFER_SAMPLES 0x8CAB
843 #endif
844 #ifndef GL_RENDERBUFFER_SAMPLES_EXT
845 #define GL_RENDERBUFFER_SAMPLES_EXT GL_RENDERBUFFER_SAMPLES
846 #endif
847 #ifndef GL_MAX_SAMPLES
848 #define GL_MAX_SAMPLES 0x8D57
849 #endif
850 #ifndef GL_MAX_SAMPLES_EXT
851 #define GL_MAX_SAMPLES_EXT GL_MAX_SAMPLES
852 #endif
853 #ifndef GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE
854 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
855 #endif
856 #ifndef GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT
857 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT GL_FRAMEBUFFER_INCOMPLETE_MULT ISAMPLE
858 #endif
859
860 #ifdef GL_GLEXT_PROTOTYPES
861 #define glBlitFramebufferEXT GLES2_GET_FUN(BlitFramebufferEXT)
862 #define glRenderbufferStorageMultisampleEXT GLES2_GET_FUN(RenderbufferStorageMul tisampleEXT)
863 #if !defined(GLES2_USE_CPP_BINDINGS)
864 GL_APICALL void GL_APIENTRY glBlitFramebufferEXT (GLint srcX0, GLint srcY0, GLin t srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitf ield mask, GLenum filter);
865 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
866 #endif
867 #endif
868 typedef void (GL_APIENTRY PFNGLBLITFRAMEBUFFEREXT) (GLint srcX0, GLint srcY0, GL int srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbi tfield mask, GLenum filter);
869 typedef void (GL_APIENTRY PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXT) (GLenum target , GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
870 #endif
871
801 /* GL_CHROMIUM_map_sub */ 872 /* GL_CHROMIUM_map_sub */
802 #ifndef GL_CHROMIUM_map_sub 873 #ifndef GL_CHROMIUM_map_sub
803 #define GL_CHROMIUM_map_sub 1 874 #define GL_CHROMIUM_map_sub 1
804 #ifndef GL_READ_ONLY 875 #ifndef GL_READ_ONLY
805 #define GL_READ_ONLY 0x88B8 876 #define GL_READ_ONLY 0x88B8
806 #endif 877 #endif
807 #ifndef GL_WRITE_ONLY 878 #ifndef GL_WRITE_ONLY
808 #define GL_WRITE_ONLY 0x88B9 879 #define GL_WRITE_ONLY 0x88B9
809 #endif 880 #endif
810 #ifdef GL_GLEXT_PROTOTYPES 881 #ifdef GL_GLEXT_PROTOTYPES
811 #define glMapBufferSubData GLES2_GET_FUN(MapBufferSubData) 882 #define glMapBufferSubData GLES2_GET_FUN(MapBufferSubData)
812 #define glUnmapBufferSubData GLES2_GET_FUN(UnmapBufferSubData) 883 #define glUnmapBufferSubData GLES2_GET_FUN(UnmapBufferSubData)
813 #define glMapTexSubImage2D GLES2_GET_FUN(MapTexSubImage2D) 884 #define glMapTexSubImage2D GLES2_GET_FUN(MapTexSubImage2D)
814 #define glUnmapTexSubImage2D GLES2_GET_FUN(UnmapTexSubImage2D) 885 #define glUnmapTexSubImage2D GLES2_GET_FUN(UnmapTexSubImage2D)
815 #if !defined(GLES2_USE_CPP_BINDINGS) 886 #if !defined(GLES2_USE_CPP_BINDINGS)
816 GL_APICALL void* GL_APIENTRY glMapBufferSubData (GLuint target, GLintptr offset, GLsizeiptr size, GLenum access); 887 GL_APICALL void* GL_APIENTRY glMapBufferSubData (GLuint target, GLintptr offset, GLsizeiptr size, GLenum access);
817 GL_APICALL void GL_APIENTRY glUnmapBufferSubData (const void* mem); 888 GL_APICALL void GL_APIENTRY glUnmapBufferSubData (const void* mem);
818 GL_APICALL void* GL_APIENTRY glMapTexSubImage2D (GLenum target, GLint level, GLi nt xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLenum access); 889 GL_APICALL void* GL_APIENTRY glMapTexSubImage2D (GLenum target, GLint level, GLi nt xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLenum access);
819 GL_APICALL void GL_APIENTRY glUnmapTexSubImage2D (const void* mem); 890 GL_APICALL void GL_APIENTRY glUnmapTexSubImage2D (const void* mem);
820 #endif 891 #endif
821 #else 892 #endif
822 typedef void* (GL_APIENTRYP PFNGLMAPBUFFERSUBDATA) (GLuint target, GLintptr offs et, GLsizeiptr size, GLenum access); 893 typedef void* (GL_APIENTRYP PFNGLMAPBUFFERSUBDATA) (GLuint target, GLintptr offs et, GLsizeiptr size, GLenum access);
823 typedef void (GL_APIENTRYP PFNGLUNMAPBUFFERSUBDATA) (const void* mem); 894 typedef void (GL_APIENTRYP PFNGLUNMAPBUFFERSUBDATA) (const void* mem);
824 typedef void* (GL_APIENTRYP PFNGLMAPTEXSUBIMAGE2D) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLen um type, GLenum access); 895 typedef void* (GL_APIENTRYP PFNGLMAPTEXSUBIMAGE2D) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLen um type, GLenum access);
825 typedef void (GL_APIENTRYP PFNGLUNMAPTEXSUBIMAGE2D) (const void* mem); 896 typedef void (GL_APIENTRYP PFNGLUNMAPTEXSUBIMAGE2D) (const void* mem);
826 #endif 897 #endif
827 #endif
828
829 898
830 #ifdef __cplusplus 899 #ifdef __cplusplus
831 } 900 }
832 #endif 901 #endif
833 902
834 #endif /* __gl2ext_h_ */ 903 #endif /* __gl2ext_h_ */
835 904
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698