glapi: Add GL_OES_EGL_image
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 11 Feb 2010 22:36:59 +0000 (17:36 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 24 Feb 2010 18:38:55 +0000 (13:38 -0500)
include/GL/gl.h
src/mesa/glapi/gen/Makefile
src/mesa/glapi/gen/OES_EGL_image.xml [new file with mode: 0644]
src/mesa/glapi/gen/gl_API.xml

index 36153b159b020eacb624cdd3811bfe347cea3c82..3fce3dfc0a1a28aea87937d1f92dbbdc651fbe9a 100644 (file)
@@ -2196,6 +2196,21 @@ typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEATIPROC) (GLenum modeRGB, GLen
 #endif /* GL_ATI_blend_equation_separate */
 
 
+/* GL_OES_EGL_image */
+#ifndef GL_OES_EGL_image
+typedef void* GLeglImageOES;
+#endif
+
+#ifndef GL_OES_EGL_image
+#define GL_OES_EGL_image 1
+#ifdef GL_GLEXT_PROTOTYPES
+GLAPI void APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
+GLAPI void APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
+#endif
+typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
+typedef void (APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
+#endif
+
 
 /**
  ** NOTE!!!!!  If you add new functions to this file, or update
index 6b6b9aecaa40b20f54965f9c3b19938034a8d50d..4984da85818dcf41c0fb37842b2ba701f1690edd 100644 (file)
@@ -87,7 +87,8 @@ API_XML = \
        EXT_packed_depth_stencil.xml \
        EXT_provoking_vertex.xml \
        EXT_texture_array.xml \
-       NV_conditional_render.xml
+       NV_conditional_render.xml \
+       OES_EGL_image.xml
 
 COMMON = $(API_XML) gl_XML.py glX_XML.py license.py typeexpr.py
 
diff --git a/src/mesa/glapi/gen/OES_EGL_image.xml b/src/mesa/glapi/gen/OES_EGL_image.xml
new file mode 100644 (file)
index 0000000..1cb43d4
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!DOCTYPE OpenGLAPI SYSTEM "gl_API.dtd">
+
+<OpenGLAPI>
+
+<category name="GL_OES_EGL_image">
+
+    <function name="EGLImageTargetTexture2DOES" offset="assign">
+        <param name="target" type="GLenum"/>
+        <param name="writeOffset" type="GLvoid *"/>
+    </function>
+
+    <function name="EGLImageTargetRenderbufferStorageOES" offset="assign">
+        <param name="target" type="GLenum"/>
+        <param name="writeOffset" type="GLvoid *"/>
+    </function>
+
+</category>
+
+</OpenGLAPI>
index fbf8b0c3e4ace7aa6d2d67e0d459e8276e5693e7..0b3d57baa68d1ad43ef8a8cab1136d89f860f37a 100644 (file)
     </function>
 </category>
 
+<xi:include href="OES_EGL_image.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
+
 </OpenGLAPI>