Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl
In directory sc8-pr-cvs1:/tmp/cvs-serv17077/src/java/org/lwjgl/opengl
Modified Files:
BaseGL.java CoreGL.java GL.java
Log Message:
Moved BaseGL constructor parameters to Display
Index: BaseGL.java
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/BaseGL.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/BaseGL.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- BaseGL.java 25 Nov 2002 17:04:56 -0000 1.6
+++ BaseGL.java 19 Dec 2002 16:35:35 -0000 1.7
@@ -68,33 +68,13 @@
/** This GL will be valid for use in only one thread */
protected Thread renderThread;
- /** The number of color bits */
- protected final int colorBits;
-
- /** The number of alpha bits */
- protected final int alphaBits;
-
- /** The number of depth bits */
- protected final int depthBits;
-
- /** The number of stencil bits */
- protected final int stencilBits;
-
/**
* Constructor for BaseGL. The context is not created at this point;
* to create the GL you must call create().
*
- * @param colorBits the number of color bits (eg. 16, 24, 32)
- * @param alphaBits the number of alpha bits (eg. 0 or 8)
- * @param depthBits the number of depth bits (eg. 16 or 24)
- * @param stencilBits the number of stencil bits (eg. 0 or 8)
* @see #create()
*/
- public BaseGL(int colorBits, int alphaBits, int depthBits, int stencilBits) {
- this.colorBits = colorBits;
- this.alphaBits = alphaBits;
- this.depthBits = depthBits;
- this.stencilBits = stencilBits;
+ public BaseGL() {
}
/**
@@ -106,7 +86,7 @@
public final void create() throws Exception{
if (created)
return;
- if (!nCreate(colorBits, alphaBits, depthBits, stencilBits))
+ if (!nCreate())
throw new Exception("GL could not be created.");
created = true;
makeCurrent();
@@ -127,7 +107,7 @@
* @return true if the GL was created successfully
* @see org.lwjgl.Display#create(org.lwjgl.DisplayMode, boolean)
*/
- private native boolean nCreate(int colorBits, int alphaBits, int depthBits, int stencilBits);
+ private native boolean nCreate();
/**
* Destroy the GL context. Does nothing if the GL has not yet been created.
Index: CoreGL.java
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/CoreGL.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/CoreGL.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- CoreGL.java 27 Nov 2002 22:34:28 -0000 1.8
+++ CoreGL.java 19 Dec 2002 16:35:35 -0000 1.9
@@ -45,12 +45,8 @@
/**
* Constructor for CoreGL.
*/
- public CoreGL(
- int colorBits,
- int alphaBits,
- int depthBits,
- int stencilBits) {
- super(colorBits, alphaBits, depthBits, stencilBits);
+ public CoreGL() {
+ super();
}
public native void accum(int op, float value);
Index: GL.java
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GL.java
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/GL.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- GL.java 27 Nov 2002 22:34:29 -0000 1.13
+++ GL.java 19 Dec 2002 16:35:35 -0000 1.14
@@ -1535,8 +1535,8 @@
/**
* Constructor for GL.
*/
- public GL(int colorBits, int alphaBits, int depthBits, int stencilBits) {
- super(colorBits, alphaBits, depthBits, stencilBits);
+ public GL() {
+ super();
}
/**
|