From 20ffed4f79ee4be3b0c7fb6eccabb084e7feff03 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Fri, 25 May 2012 15:28:43 +0000 Subject: [PATCH] PGL updates for android --- android/core/src/processing/opengl/PGL.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/android/core/src/processing/opengl/PGL.java b/android/core/src/processing/opengl/PGL.java index 465e28bc4..a05c81593 100644 --- a/android/core/src/processing/opengl/PGL.java +++ b/android/core/src/processing/opengl/PGL.java @@ -106,6 +106,11 @@ public class PGL { */ public static final float MIN_CAPS_JOINS_WEIGHT = 2.f; + /** Maximum length of linear paths to be stroked with the + * full algorithm that generates accurate caps and joins. + */ + public static final int MAX_CAPS_JOINS_LENGTH = 500; + /** Minimum array size to use arrayCopy method(). **/ static protected final int MIN_ARRAYCOPY_SIZE = 2; @@ -225,10 +230,11 @@ public class PGL { public static final int GL_TRIANGLE_STRIP = GLES20.GL_TRIANGLE_STRIP; public static final int GL_TRIANGLES = GLES20.GL_TRIANGLES; - public static final int GL_VENDOR = GLES20.GL_VENDOR; - public static final int GL_RENDERER = GLES20.GL_RENDERER; - public static final int GL_VERSION = GLES20.GL_VERSION; - public static final int GL_EXTENSIONS = GLES20.GL_EXTENSIONS; + public static final int GL_VENDOR = GLES20.GL_VENDOR; + public static final int GL_RENDERER = GLES20.GL_RENDERER; + public static final int GL_VERSION = GLES20.GL_VERSION; + public static final int GL_EXTENSIONS = GLES20.GL_EXTENSIONS; + public static final int GL_SHADING_LANGUAGE_VERSION = GLES20.GL_SHADING_LANGUAGE_VERSION; public static final int GL_MAX_TEXTURE_SIZE = GLES20.GL_MAX_TEXTURE_SIZE; public static final int GL_MAX_SAMPLES = -1;