Syntax corrections
This commit is contained in:
parent
28ef4886ce
commit
4658cc1c77
|
@ -48,7 +48,7 @@ import org.lwjgl.Sys;
|
||||||
* @version $Revision$
|
* @version $Revision$
|
||||||
*/
|
*/
|
||||||
public class Pbuffer {
|
public class Pbuffer {
|
||||||
public final static int PBUFFER_SUPPORTED = 1;
|
public static final int PBUFFER_SUPPORTED = 1;
|
||||||
|
|
||||||
/** Current Pbuffer */
|
/** Current Pbuffer */
|
||||||
private static Pbuffer currentBuffer = null;
|
private static Pbuffer currentBuffer = null;
|
||||||
|
|
|
@ -56,7 +56,7 @@ class StateStack {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public StateStack(int stack_size, int initial_value) {
|
StateStack(int stack_size, int initial_value) {
|
||||||
state_stack = new int[stack_size];
|
state_stack = new int[stack_size];
|
||||||
stack_pos = 0;
|
stack_pos = 0;
|
||||||
state_stack[stack_pos] = initial_value;
|
state_stack[stack_pos] = initial_value;
|
||||||
|
|
|
@ -42,7 +42,7 @@ import java.nio.*;
|
||||||
|
|
||||||
abstract class Util {
|
abstract class Util {
|
||||||
|
|
||||||
final static IntBuffer int_buffer = ByteBuffer.allocateDirect(64).order(ByteOrder.nativeOrder()).asIntBuffer();
|
static final IntBuffer int_buffer = ByteBuffer.allocateDirect(64).order(ByteOrder.nativeOrder()).asIntBuffer();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A helper function which is used to get the byte offset in an arbitrary buffer
|
* A helper function which is used to get the byte offset in an arbitrary buffer
|
||||||
|
|
|
@ -48,7 +48,7 @@ class VBOTracker {
|
||||||
current_tracker = default_tracker;
|
current_tracker = default_tracker;
|
||||||
}
|
}
|
||||||
|
|
||||||
public VBOTracker() {
|
VBOTracker() {
|
||||||
int stack_size = Util.getGLInteger(GL11.GL_MAX_CLIENT_ATTRIB_STACK_DEPTH);
|
int stack_size = Util.getGLInteger(GL11.GL_MAX_CLIENT_ATTRIB_STACK_DEPTH);
|
||||||
vbo_array_stack = new StateStack(stack_size, 0);
|
vbo_array_stack = new StateStack(stack_size, 0);
|
||||||
vbo_element_stack = new StateStack(stack_size, 0);
|
vbo_element_stack = new StateStack(stack_size, 0);
|
||||||
|
|
Loading…
Reference in New Issue