Syntax corrections

This commit is contained in:
Ioannis Tsakpinis 2004-02-15 21:46:58 +00:00
parent 28ef4886ce
commit 4658cc1c77
4 changed files with 70 additions and 70 deletions

View File

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

View File

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

View File

@ -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

View File

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