From 5c70938ccfc43fbd4b6b3db6b258a23914920eb7 Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 28 Feb 2015 13:32:16 +0100 Subject: [PATCH] Added GL_PATCHES as new constant --- .../src/main/java/com/jme3/renderer/opengl/GL4.java | 1 + .../main/java/com/jme3/renderer/lwjgl/LwjglGL.java | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/renderer/opengl/GL4.java b/jme3-core/src/main/java/com/jme3/renderer/opengl/GL4.java index 0539f2262..9ce4e835f 100644 --- a/jme3-core/src/main/java/com/jme3/renderer/opengl/GL4.java +++ b/jme3-core/src/main/java/com/jme3/renderer/opengl/GL4.java @@ -42,4 +42,5 @@ public interface GL4 extends GL3 { public static final int GL_TESS_CONTROL_SHADER=0x8E87; public static final int GL_TESS_EVALUATION_SHADER=0x8E88; public static final int GL_PATCHES=0xE; + public void glPatchParameter(int count); } diff --git a/jme3-lwjgl/src/main/java/com/jme3/renderer/lwjgl/LwjglGL.java b/jme3-lwjgl/src/main/java/com/jme3/renderer/lwjgl/LwjglGL.java index ee2581f9a..82b8ee72b 100644 --- a/jme3-lwjgl/src/main/java/com/jme3/renderer/lwjgl/LwjglGL.java +++ b/jme3-lwjgl/src/main/java/com/jme3/renderer/lwjgl/LwjglGL.java @@ -11,12 +11,7 @@ import java.nio.IntBuffer; import java.nio.ShortBuffer; import com.jme3.renderer.opengl.GL4; -import org.lwjgl.opengl.GL11; -import org.lwjgl.opengl.GL12; -import org.lwjgl.opengl.GL13; -import org.lwjgl.opengl.GL15; -import org.lwjgl.opengl.GL20; -import org.lwjgl.opengl.GL30; +import org.lwjgl.opengl.*; public class LwjglGL implements GL, GL2, GL3,GL4 { @@ -444,4 +439,9 @@ public class LwjglGL implements GL, GL2, GL3,GL4 { checkLimit(param1); GL30.glGenVertexArrays(param1); } + + @Override + public void glPatchParameter(int count) { + GL40.glPatchParameteri(GL40.GL_PATCH_VERTICES,count); + } }