Added GL_PATCHES as new constant

experimental
michael 10 years ago
parent 555d73b851
commit 5c70938ccf
  1. 1
      jme3-core/src/main/java/com/jme3/renderer/opengl/GL4.java
  2. 12
      jme3-lwjgl/src/main/java/com/jme3/renderer/lwjgl/LwjglGL.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);
}

@ -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);
}
}

Loading…
Cancel
Save