From 2d9faafa2318c05f8991beff9cc683d72cbabd07 Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Fri, 29 Mar 2013 13:06:32 -0700 Subject: Add ES3 functions and constants, difficult ones commented out This change adds ES3 functions to GLES30.spec, disabling any that require non-trivial changes for the generator to handle. Steps taken to add these: - Copy ES3 function declarations from gl3.h - Remove GL_APICALL, GL_APIENTRY, and semicolon from each declaration - Add whitespace around parens and *s as required by the parser - Comment out functions that the generator doesn't understand or that it generates bad Java interfaces for (by inspection). Bug: 8566953 Change-Id: Iaaef7d53e24f9a576759dbba72cd206bae1c1276 --- opengl/tools/glgen/stubs/gles11/GLES20Header.java-if | 3 +++ 1 file changed, 3 insertions(+) (limited to 'opengl/tools/glgen/stubs/gles11/GLES20Header.java-if') diff --git a/opengl/tools/glgen/stubs/gles11/GLES20Header.java-if b/opengl/tools/glgen/stubs/gles11/GLES20Header.java-if index 7a7dccd..6ec126f 100644 --- a/opengl/tools/glgen/stubs/gles11/GLES20Header.java-if +++ b/opengl/tools/glgen/stubs/gles11/GLES20Header.java-if @@ -296,6 +296,9 @@ public class GLES20 { public static final int GL_RGB5_A1 = 0x8057; public static final int GL_RGB565 = 0x8D62; public static final int GL_DEPTH_COMPONENT16 = 0x81A5; + // GL_STENCIL_INDEX does not appear in gl2.h or gl2ext.h, and there is no + // token with value 0x1901. It shouldn't be here, but we can't remove it + // now in case someone is using it. public static final int GL_STENCIL_INDEX = 0x1901; public static final int GL_STENCIL_INDEX8 = 0x8D48; public static final int GL_RENDERBUFFER_WIDTH = 0x8D42; -- cgit v1.1