Rules with mighty fist. New API killed off before it even sees light of day. Some refactoring.

This commit is contained in:
Caspian Rychlik-Prince 2004-04-04 13:01:53 +00:00
parent 85130ebd90
commit ddabfaa81a
1 changed files with 10 additions and 3 deletions

View File

@ -350,7 +350,7 @@ public final class Window {
* the minimum requirements could not be met satisfactorily
*/
public static void create(String title, int x, int y, int width, int height, int bpp, int alpha, int depth, int stencil) throws LWJGLException {
create(title, x, y, width, height, bpp, alpha, depth, stencil);
create(title, x, y, width, height, bpp, alpha, depth, stencil, 0);
}
/**
@ -375,8 +375,15 @@ public final class Window {
*/
public static void create(String title, int x, int y, int width, int height, int bpp, int alpha, int depth, int stencil, int samples)
throws LWJGLException {
create(title, x, y, width, height, bpp, alpha, depth, stencil, samples);
if (isCreated())
throw new IllegalStateException("Only one LWJGL window may be instantiated at any one time.");
Window.fullscreen = false;
Window.x = x;
Window.y = y;
Window.width = width;
Window.height = height;
Window.title = title;
createWindow(bpp, alpha, depth, stencil, samples);
}
/**