aboutsummaryrefslogtreecommitdiffstats
path: root/make/stub_includes/opengl/GLES
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-04-09 03:55:57 +0200
committerSven Gothel <[email protected]>2012-04-09 03:55:57 +0200
commit1e61021a062b1403f7eed948ac9d2ea0c04ea951 (patch)
tree741a022a7ce45996c1394aa27648ffc776fbf1c1 /make/stub_includes/opengl/GLES
parent96ae8202621dfa1f7ae4995e7749d1b0d9918b54 (diff)
Fix EGL/ES types GLeglImageOES, EGLImageKHR & EGLClientBuffer - and functions: eglCreateImageKHR, eglCreatePbufferFromClientBuffer
Unique typedef for: EGLConfig, EGLContext, EGLDisplay, EGLSurface, EGLNativeDisplayType, EGLNativeWindowType, EGLNativePixmapType, EGLImageKHR, GLeglImageOES and EGLSyncKHR allowing to render them individually opaque (long) and keep EGLClientBuffer as NIO buffer.
Diffstat (limited to 'make/stub_includes/opengl/GLES')
-rw-r--r--make/stub_includes/opengl/GLES/glext.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/make/stub_includes/opengl/GLES/glext.h b/make/stub_includes/opengl/GLES/glext.h
index 15451c68f..b3d6b712b 100644
--- a/make/stub_includes/opengl/GLES/glext.h
+++ b/make/stub_includes/opengl/GLES/glext.h
@@ -65,7 +65,8 @@ extern "C" {
/* GL_OES_EGL_image */
#ifndef GL_OES_EGL_image
-typedef void* GLeglImageOES;
+// typedef void* GLeglImageOES;
+typedef struct __GLeglImageOES *GLeglImageOES;
#endif
/* GL_OES_EGL_image_external */
eBinding true # Ignore certain extensions that will be picked up by the dynamic # lookup mechanism anyway if they are present IgnoreExtension GL_OES_fixed_point IgnoreExtension GL_OES_single_precision # Add PixelStorei StateTracker # # Add input validation to glPixelStorei, just to be sure. CustomJavaCode GLES1Impl private static final int params_offset = 0; // just a helper for JavaPrologue .. JavaPrologue glPixelStorei if (pname != GL_PACK_ALIGNMENT && pname != GL_UNPACK_ALIGNMENT) { JavaPrologue glPixelStorei throw new GLException("Unsupported pixel store parameter name 0x" + Integer.toHexString(pname)); JavaPrologue glPixelStorei } JavaPrologue glPixelStorei glStateTracker.setInt(pname, param); JavaPrologue glGetIntegerv if ( glStateTracker.getInt(pname, params, params_offset) ) { return; } CustomJavaCode GLES1Impl public void glOrtho(double left, double right, double bottom, double top, double near_val, double far_val) { CustomJavaCode GLES1Impl glOrtho((float) left, (float) right, (float) bottom, (float) top, (float) near_val, (float) far_val); } CustomJavaCode GLES1Impl public void glFrustum(double left, double right, double bottom, double top, double zNear, double zFar) { CustomJavaCode GLES1Impl glFrustumf((float) left, (float) right, (float) bottom, (float) top, (float) zNear, (float) zFar); } CustomJavaCode GLES1Impl public void glClearDepth(double depth) { CustomJavaCode GLES1Impl glClearDepthf((float)depth); } CustomJavaCode GLES1Impl public void glDepthRange(double zNear, double zFar) { CustomJavaCode GLES1Impl glDepthRangef((float)zNear, (float)zFar); } CustomCCode /* Define GL_GLEXT_PROTOTYPES so that the OpenGL extension prototypes in CustomCCode "glext.h" are parsed. */ CustomCCode #define GL_GLEXT_PROTOTYPES CustomCCode /* Include the OpenGL headers */ CustomCCode /* #define GL_APICALL __declspec(dllimport) */ CustomCCode #include <GLES/gl.h> CustomCCode #include <GLES/glext.h> CustomCCode #include <stdlib.h> Include ../intptr.cfg IncludeAs CustomJavaCode GLES1Impl gl-impl-CustomJavaCode-common.java IncludeAs CustomJavaCode GLES1Impl gl-impl-CustomJavaCode-gles1.java IncludeAs CustomJavaCode GLES1Impl gl-impl-CustomJavaCode-embedded.java IncludeAs CustomCCode gl-impl-CustomCCode-gles1.c Import javax.media.opengl.GLES1 Import javax.media.opengl.GLES2 Import javax.media.opengl.GL2 Import com.jogamp.common.nio.Buffers