OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // DO NOT EDIT! | 7 // DO NOT EDIT! |
8 | 8 |
9 #include <GLES2/gl2.h> | 9 #include <GLES2/gl2.h> |
10 #include "ppapi/lib/gl/gles2/gl2ext_ppapi.h" | 10 #include "ppapi/lib/gl/gles2/gl2ext_ppapi.h" |
11 | 11 |
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 const void* ptr) { | 746 const void* ptr) { |
747 glGetInterfacePPAPI()->VertexAttribPointer( | 747 glGetInterfacePPAPI()->VertexAttribPointer( |
748 glGetCurrentContextPPAPI(), indx, size, type, normalized, stride, ptr); | 748 glGetCurrentContextPPAPI(), indx, size, type, normalized, stride, ptr); |
749 } | 749 } |
750 | 750 |
751 void GL_APIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height) { | 751 void GL_APIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height) { |
752 glGetInterfacePPAPI()->Viewport( | 752 glGetInterfacePPAPI()->Viewport( |
753 glGetCurrentContextPPAPI(), x, y, width, height); | 753 glGetCurrentContextPPAPI(), x, y, width, height); |
754 } | 754 } |
755 | 755 |
756 void GL_APIENTRY glBlitFramebufferEXT( | |
757 GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, | |
758 GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) { | |
759 const struct PPB_OpenGLES2FramebufferBlit_Dev* ext = | |
760 glGetFramebufferBlitInterfacePPAPI(); | |
761 if (ext) | |
762 ext->BlitFramebufferEXT( | |
763 glGetCurrentContextPPAPI(), srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, | |
764 dstX1, dstY1, mask, filter); | |
765 } | |
766 | |
767 void GL_APIENTRY glRenderbufferStorageMultisampleEXT( | |
768 GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, | |
769 GLsizei height) { | |
770 const struct PPB_OpenGLES2FramebufferMultisample_Dev* ext = | |
771 glGetFramebufferMultisampleInterfacePPAPI(); | |
772 if (ext) | |
773 ext->RenderbufferStorageMultisampleEXT( | |
774 glGetCurrentContextPPAPI(), target, samples, internalformat, width, | |
775 height); | |
776 } | |
777 | |
778 GLboolean GL_APIENTRY glEnableFeatureCHROMIUM(const char* feature) { | |
779 const struct PPB_OpenGLES2ChromiumEnableFeature_Dev* ext = | |
780 glGetChromiumEnableFeatureInterfacePPAPI(); | |
781 if (ext) | |
782 return ext->EnableFeatureCHROMIUM(glGetCurrentContextPPAPI(), feature); | |
783 return 0; | |
784 } | |
785 | |
786 void* GL_APIENTRY glMapBufferSubDataCHROMIUM( | |
787 GLuint target, GLintptr offset, GLsizeiptr size, GLenum access) { | |
788 const struct PPB_OpenGLES2ChromiumMapSub_Dev* ext = | |
789 glGetChromiumMapSubInterfacePPAPI(); | |
790 if (ext) | |
791 return ext->MapBufferSubDataCHROMIUM( | |
792 glGetCurrentContextPPAPI(), target, offset, size, access); | |
793 return 0; | |
794 } | |
795 | |
796 void GL_APIENTRY glUnmapBufferSubDataCHROMIUM(const void* mem) { | |
797 const struct PPB_OpenGLES2ChromiumMapSub_Dev* ext = | |
798 glGetChromiumMapSubInterfacePPAPI(); | |
799 if (ext) | |
800 ext->UnmapBufferSubDataCHROMIUM(glGetCurrentContextPPAPI(), mem); | |
801 } | |
802 | |
803 void* GL_APIENTRY glMapTexSubImage2DCHROMIUM( | |
804 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, | |
805 GLsizei height, GLenum format, GLenum type, GLenum access) { | |
806 const struct PPB_OpenGLES2ChromiumMapSub_Dev* ext = | |
807 glGetChromiumMapSubInterfacePPAPI(); | |
808 if (ext) | |
809 return ext->MapTexSubImage2DCHROMIUM( | |
810 glGetCurrentContextPPAPI(), target, level, xoffset, yoffset, width, | |
811 height, format, type, access); | |
812 return 0; | |
813 } | |
814 | |
815 void GL_APIENTRY glUnmapTexSubImage2DCHROMIUM(const void* mem) { | |
816 const struct PPB_OpenGLES2ChromiumMapSub_Dev* ext = | |
817 glGetChromiumMapSubInterfacePPAPI(); | |
818 if (ext) | |
819 ext->UnmapTexSubImage2DCHROMIUM(glGetCurrentContextPPAPI(), mem); | |
820 } | |
821 | |
822 void GL_APIENTRY glDrawArraysInstancedANGLE( | |
823 GLenum mode, GLint first, GLsizei count, GLsizei primcount) { | |
824 const struct PPB_OpenGLES2InstancedArrays_Dev* ext = | |
825 glGetInstancedArraysInterfacePPAPI(); | |
826 if (ext) | |
827 ext->DrawArraysInstancedANGLE( | |
828 glGetCurrentContextPPAPI(), mode, first, count, primcount); | |
829 } | |
830 | |
831 void GL_APIENTRY glDrawElementsInstancedANGLE( | |
832 GLenum mode, GLsizei count, GLenum type, const void* indices, | |
833 GLsizei primcount) { | |
834 const struct PPB_OpenGLES2InstancedArrays_Dev* ext = | |
835 glGetInstancedArraysInterfacePPAPI(); | |
836 if (ext) | |
837 ext->DrawElementsInstancedANGLE( | |
838 glGetCurrentContextPPAPI(), mode, count, type, indices, primcount); | |
839 } | |
840 | |
841 void GL_APIENTRY glVertexAttribDivisorANGLE(GLuint index, GLuint divisor) { | |
842 const struct PPB_OpenGLES2InstancedArrays_Dev* ext = | |
843 glGetInstancedArraysInterfacePPAPI(); | |
844 if (ext) | |
845 ext->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index, divisor); | |
846 } | |
847 | |
OLD | NEW |