You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(134) |
Sep
(52) |
Oct
(13) |
Nov
(342) |
Dec
(163) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(44) |
Feb
(62) |
Mar
(158) |
Apr
(38) |
May
(70) |
Jun
(58) |
Jul
(104) |
Aug
(207) |
Sep
(83) |
Oct
(122) |
Nov
(23) |
Dec
(49) |
2004 |
Jan
(119) |
Feb
(132) |
Mar
(192) |
Apr
(140) |
May
(77) |
Jun
(74) |
Jul
(201) |
Aug
(63) |
Sep
(102) |
Oct
(70) |
Nov
(173) |
Dec
(78) |
2005 |
Jan
(174) |
Feb
(197) |
Mar
(105) |
Apr
(59) |
May
(77) |
Jun
(43) |
Jul
(21) |
Aug
(18) |
Sep
(47) |
Oct
(37) |
Nov
(74) |
Dec
(50) |
2006 |
Jan
(44) |
Feb
(19) |
Mar
(32) |
Apr
(24) |
May
(31) |
Jun
(55) |
Jul
(138) |
Aug
(28) |
Sep
(12) |
Oct
(41) |
Nov
(58) |
Dec
(24) |
2007 |
Jan
(28) |
Feb
(14) |
Mar
(10) |
Apr
(68) |
May
(30) |
Jun
(26) |
Jul
(18) |
Aug
(63) |
Sep
(19) |
Oct
(29) |
Nov
(20) |
Dec
(10) |
2008 |
Jan
(38) |
Feb
(7) |
Mar
(37) |
Apr
(120) |
May
(41) |
Jun
(36) |
Jul
(39) |
Aug
(24) |
Sep
(28) |
Oct
(30) |
Nov
(36) |
Dec
(75) |
2009 |
Jan
(46) |
Feb
(22) |
Mar
(50) |
Apr
(70) |
May
(134) |
Jun
(105) |
Jul
(75) |
Aug
(34) |
Sep
(38) |
Oct
(34) |
Nov
(19) |
Dec
(20) |
2010 |
Jan
(11) |
Feb
(20) |
Mar
(65) |
Apr
(83) |
May
(104) |
Jun
(73) |
Jul
(78) |
Aug
(57) |
Sep
(43) |
Oct
(35) |
Nov
(9) |
Dec
(4) |
2011 |
Jan
(21) |
Feb
(11) |
Mar
(18) |
Apr
(10) |
May
(18) |
Jun
(15) |
Jul
(48) |
Aug
(25) |
Sep
(17) |
Oct
(45) |
Nov
(15) |
Dec
(12) |
2012 |
Jan
(21) |
Feb
(9) |
Mar
(12) |
Apr
(9) |
May
(9) |
Jun
(5) |
Jul
(1) |
Aug
(10) |
Sep
(12) |
Oct
(1) |
Nov
(28) |
Dec
(5) |
2013 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2016 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Elias N. <eli...@us...> - 2002-12-22 20:31:25
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv2365/win32 Modified Files: org_lwjgl_Display.cpp Log Message: Fixed win32 display bug Index: org_lwjgl_Display.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_Display.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_Display.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- org_lwjgl_Display.cpp 22 Dec 2002 19:52:44 -0000 1.11 +++ org_lwjgl_Display.cpp 22 Dec 2002 20:31:22 -0000 1.12 @@ -200,7 +200,7 @@ jclass displayModeClass = env->FindClass("org/lwjgl/DisplayMode"); // Note the * 32 - this is because we are manufacturing available alpha/depth/stencil combos. - jobjectArray ret = env->NewObjectArray(n * 32, displayModeClass, NULL); + jobjectArray ret = env->NewObjectArray(n * 16, displayModeClass, NULL); jmethodID displayModeConstructor = env->GetMethodID(displayModeClass, "<init>", "(IIIIIII)V"); i = n = 0; |
From: Elias N. <eli...@us...> - 2002-12-22 20:19:54
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/linux In directory sc8-pr-cvs1:/tmp/cvs-serv27492 Modified Files: org_lwjgl_Sys.cpp Log Message: Added Sys.alert to linux Index: org_lwjgl_Sys.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/linux/org_lwjgl_Sys.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_Sys.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- org_lwjgl_Sys.cpp 26 Nov 2002 04:58:29 -0000 1.3 +++ org_lwjgl_Sys.cpp 22 Dec 2002 20:19:50 -0000 1.4 @@ -180,3 +180,19 @@ #endif } } + +/* + * Class: org_lwjgl_Sys + * Method: alert + * Signature: (Ljava/lang/String;Ljava/lang/String;)V +*/ +JNIEXPORT void JNICALL Java_org_lwjgl_Sys_alert(JNIEnv * env, jclass clazz, jstring title, jstring message) +{ + jboolean copy = JNI_FALSE; + const char * eMessageText = env->GetStringUTFChars(message, ©); + const char * cTitleBarText = env->GetStringUTFChars(title, ©); + printf("*** Alert ***\n%s\n%s\n", cTitleBarText, eMessageText); + + env->ReleaseStringUTFChars(message, eMessageText); + env->ReleaseStringUTFChars(title, cTitleBarText); +} |
From: Caspian Rychlik-P. <ci...@us...> - 2002-12-22 19:53:45
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/vector In directory sc8-pr-cvs1:/tmp/cvs-serv9714/src/java/org/lwjgl/vector Modified Files: Vector.java Log Message: Now throws an assertion error if you try to normalise a zero length vector Index: Vector.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Vector.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Vector.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Vector.java 21 Dec 2002 12:37:20 -0000 1.4 +++ Vector.java 22 Dec 2002 19:53:41 -0000 1.5 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Lightweight Java Game Library Project + * Copyright (c) 2002 Light Weight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -84,8 +84,14 @@ * @return this */ public final Vector normalize() { - float l = 1.0f / length(); - return scale(l); + float len = length(); + if (len != 0.0f) { + float l = 1.0f / len; + return scale(l); + } else { + assert false; + return this; + } } |
From: Caspian Rychlik-P. <ci...@us...> - 2002-12-22 19:52:47
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv9062/src/native/win32 Modified Files: org_lwjgl_Sys.cpp org_lwjgl_Display.cpp Log Message: Alert code & new displaymode code Index: org_lwjgl_Sys.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_Sys.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_Sys.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- org_lwjgl_Sys.cpp 15 Aug 2002 15:43:02 -0000 1.2 +++ org_lwjgl_Sys.cpp 22 Dec 2002 19:52:44 -0000 1.3 @@ -42,6 +42,9 @@ #include <windows.h> #include "org_lwjgl_Sys.h" +// Handle to the application's window +extern HWND hwnd; + __int64 hires_timer_freq; // Hires timer frequency __int64 hires_timer_start; // Hires timer start __int64 hires_timer; // Hires timer current time @@ -138,4 +141,25 @@ printf("Failed to set priority class.\n"); #endif } +} + +/* + * Class: org_lwjgl_Sys + * Method: alert + * Signature: (Ljava/lang/String;Ljava/lang/String;)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_Sys_alert + (JNIEnv * env, jclass clazz, jstring title, jstring message) +{ + jboolean copy = JNI_FALSE; + const char * eMessageText = env->GetStringUTFChars(message, ©); + const char * cTitleBarText = env->GetStringUTFChars(title, ©); + MessageBox(hwnd, eMessageText, cTitleBarText, MB_OK | MB_TOPMOST); + +#ifdef _DEBUG + printf("*** Alert ***%s\n%s\n", cTitleBarText, eMessageText); +#endif + + env->ReleaseStringUTFChars(message, eMessageText); + env->ReleaseStringUTFChars(title, cTitleBarText); } Index: org_lwjgl_Display.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/org_lwjgl_Display.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/win32/org_lwjgl_Display.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- org_lwjgl_Display.cpp 19 Dec 2002 16:35:35 -0000 1.10 +++ org_lwjgl_Display.cpp 22 Dec 2002 19:52:44 -0000 1.11 @@ -50,59 +50,59 @@ #define WINDOWCLASSNAME "LWJGLWINDOW" extern HINSTANCE dll_handle; -// Initialise static variables +// Initialise static variables bool oneShotInitialised = false; HWND hwnd = NULL; // Handle to the window HDC hdc = NULL; // Device context -LPDIRECTINPUT lpdi = NULL; - -void destroyDI(void) -{ - lpdi->Release(); - lpdi = NULL; -} - -void destroyWindow(void) -{ - // Reset the display if necessary - ChangeDisplaySettings(NULL, 0); - - if (hwnd != NULL) { - // Vape the window - DestroyWindow(hwnd); - hwnd = NULL; - } - -#ifdef _DEBUG - printf("Destroyed display\n"); -#endif - - // Show the mouse - ShowCursor(TRUE); -} - -void destroyAll(void) -{ - destroyDI(); - destroyWindow(); -} - -void dumpLastError(void) { - LPVOID lpMsgBuf; - FormatMessage( - FORMAT_MESSAGE_ALLOCATE_BUFFER | - FORMAT_MESSAGE_FROM_SYSTEM | - FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, - GetLastError(), - 0, // Default language - (LPTSTR) &lpMsgBuf, - 0, - NULL - ); - printf("System error: %s\n", lpMsgBuf); - LocalFree(lpMsgBuf); -} +LPDIRECTINPUT lpdi = NULL; + +void destroyDI(void) +{ + lpdi->Release(); + lpdi = NULL; +} + +void destroyWindow(void) +{ + // Reset the display if necessary + ChangeDisplaySettings(NULL, 0); + + if (hwnd != NULL) { + // Vape the window + DestroyWindow(hwnd); + hwnd = NULL; + } + +#ifdef _DEBUG + printf("Destroyed display\n"); +#endif + + // Show the mouse + ShowCursor(TRUE); +} + +void destroyAll(void) +{ + destroyDI(); + destroyWindow(); +} + +void dumpLastError(void) { + LPVOID lpMsgBuf; + FormatMessage( + FORMAT_MESSAGE_ALLOCATE_BUFFER | + FORMAT_MESSAGE_FROM_SYSTEM | + FORMAT_MESSAGE_IGNORE_INSERTS, + NULL, + GetLastError(), + 0, // Default language + (LPTSTR) &lpMsgBuf, + 0, + NULL + ); + printf("System error: %s\n", lpMsgBuf); + LocalFree(lpMsgBuf); +} /* * A dummy WindowProc which does nothing. Used so we can have an invisible OpenGL window @@ -198,19 +198,30 @@ // Allocate an array of DisplayModes big enough jclass displayModeClass = env->FindClass("org/lwjgl/DisplayMode"); - jobjectArray ret = env->NewObjectArray(n, displayModeClass, NULL); - jmethodID displayModeConstructor = env->GetMethodID(displayModeClass, "<init>", "(IIII)V"); + + // Note the * 32 - this is because we are manufacturing available alpha/depth/stencil combos. + jobjectArray ret = env->NewObjectArray(n * 32, displayModeClass, NULL); + jmethodID displayModeConstructor = env->GetMethodID(displayModeClass, "<init>", "(IIIIIII)V"); i = n = 0; while (EnumDisplaySettings(NULL, i ++, &mode) != 0) { // Filter out indexed modes - if (mode.dmBitsPerPel < 16) { + if (mode.dmBitsPerPel <= 8) { continue; } else { - jobject displayMode = env->NewObject(displayModeClass, displayModeConstructor, mode.dmPelsWidth, mode.dmPelsHeight, - mode.dmBitsPerPel, mode.dmDisplayFrequency); + jobject displayMode; - env->SetObjectArrayElement(ret, n ++, displayMode); + for (int depthBits = 0; depthBits <= 24; depthBits += 8) { + for (int stencilBits = 0; stencilBits <= 8; stencilBits += 8) { + for (int alphaBits = 0; alphaBits <= 8; alphaBits += 8) { + + displayMode = env->NewObject(displayModeClass, displayModeConstructor, mode.dmPelsWidth, mode.dmPelsHeight, + mode.dmBitsPerPel, mode.dmDisplayFrequency, alphaBits, depthBits, stencilBits); + + env->SetObjectArrayElement(ret, n ++, displayMode); + } + } + } } } @@ -223,19 +234,19 @@ * Signature: (IIIIZ)Z */ JNIEXPORT jboolean JNICALL Java_org_lwjgl_Display_nCreate - (JNIEnv * env, jclass clazz, jint width, jint height, jint bpp, jint freq, + (JNIEnv * env, jclass clazz, jint width, jint height, jint bpp, jint freq, jint alphaBits, jint depthBits, jint stencilBits, jboolean fullscreen) { #ifdef _DEBUG printf("Creating display: size %dx%d %dhz %dbpp...\n", width, height, freq, bpp); -#endif +#endif if (fullscreen && SetDisplayMode(width, height, bpp, freq) != 1) return JNI_FALSE; /* Register a window. This window does nothing, it's just a requirement that we get a handle to it so we can do other things - */ + */ if (!oneShotInitialised) { WNDCLASS windowClass; @@ -251,23 +262,31 @@ windowClass.lpszClassName = WINDOWCLASSNAME; if (RegisterClass(&windowClass) == 0) { - dumpLastError(); + dumpLastError(); printf("Failed to register window class\n"); return JNI_FALSE; - } + } oneShotInitialised = true; } + int windowflags; + + if (fullscreen) { + windowflags = WS_POPUP; + } else { + windowflags = WS_POPUP | WS_CAPTION; + } + // Create the window now, using that class: hwnd = CreateWindow( WINDOWCLASSNAME, "LWJGL", - WS_POPUP, // | WS_MAXIMIZE, + windowflags, 0, 0, width, height, NULL, NULL, - GetModuleHandle(NULL), + dll_handle, NULL); // And we never look at windowClass again... @@ -304,98 +323,98 @@ break; default: printf("\n"); - } + } destroyWindow(); return JNI_FALSE; } - int flags = PFD_DRAW_TO_WINDOW | // support window - PFD_SUPPORT_OPENGL | // support OpenGL - PFD_GENERIC_ACCELERATED | - PFD_DOUBLEBUFFER; // double buffered - - PIXELFORMATDESCRIPTOR pfd = { - sizeof(PIXELFORMATDESCRIPTOR), // size of this pfd - 1, // version number - flags, // RGBA type - PFD_TYPE_RGBA, - (BYTE)bpp, - 0, 0, 0, 0, 0, 0, // color bits ignored - (BYTE)alphaBits, - 0, // shift bit ignored - 0, // no accumulation buffer - 0, 0, 0, 0, // accum bits ignored - (BYTE)depthBits, - (BYTE)stencilBits, - 0, // One auxiliary buffer - PFD_MAIN_PLANE, // main layer - 0, // reserved - 0, 0, 0 // layer masks ignored - }; - - // Ensure desktop color depth is adequate - int availableBitDepth = GetDeviceCaps(hdc, BITSPIXEL); - if (availableBitDepth < bpp) { - printf("This application requires a greater colour depth.\n"); - destroyAll(); - return JNI_FALSE; - }; - - int iPixelFormat; - - // get the best available match of pixel format for the device context - iPixelFormat = ChoosePixelFormat(hdc, &pfd); - if (iPixelFormat == 0) { - printf("Failed to choose pixel format.\n"); - destroyAll(); - return JNI_FALSE; - } - - PIXELFORMATDESCRIPTOR desc; - if (DescribePixelFormat(hdc, iPixelFormat, sizeof(PIXELFORMATDESCRIPTOR), &desc) == 0) { - printf("Could not describe pixel format\n"); - destroyAll(); - return JNI_FALSE; - } - - if (desc.cColorBits < bpp) { - printf("This application requires a greater colour depth.\n"); - destroyAll(); - return JNI_FALSE; - } - - if (desc.cStencilBits < stencilBits) { - printf("This application requires a greater stencil depth.\n"); - destroyAll(); - return JNI_FALSE; - } - - if (desc.cDepthBits < depthBits) { - printf("This application requires a greater depth buffer depth.\n"); - destroyAll(); - return JNI_FALSE; - } - - if ((desc.dwFlags & flags) == 0) { - printf("Capabilities not supported.\n"); - destroyAll(); - return JNI_FALSE; - } - -#ifdef _DEBUG - printf("Pixel format is %d\n", iPixelFormat); -#endif - - // make that the pixel format of the device context - if (SetPixelFormat(hdc, iPixelFormat, &pfd) == FALSE) { - printf("Failed to set pixel format\n"); - destroyAll(); - return JNI_FALSE; - } - - jfieldID fid_handle = env->GetStaticFieldID(clazz, "handle", "I"); - env->SetStaticIntField(clazz, fid_handle, (jint) hwnd); - + int flags = PFD_DRAW_TO_WINDOW | // support window + PFD_SUPPORT_OPENGL | // support OpenGL + PFD_GENERIC_ACCELERATED | + PFD_DOUBLEBUFFER; // double buffered + + PIXELFORMATDESCRIPTOR pfd = { + sizeof(PIXELFORMATDESCRIPTOR), // size of this pfd + 1, // version number + flags, // RGBA type + PFD_TYPE_RGBA, + (BYTE)bpp, + 0, 0, 0, 0, 0, 0, // color bits ignored + (BYTE)alphaBits, + 0, // shift bit ignored + 0, // no accumulation buffer + 0, 0, 0, 0, // accum bits ignored + (BYTE)depthBits, + (BYTE)stencilBits, + 0, // No auxiliary buffer + PFD_MAIN_PLANE, // main layer + 0, // reserved + 0, 0, 0 // layer masks ignored + }; + + // Ensure desktop color depth is adequate + int availableBitDepth = GetDeviceCaps(hdc, BITSPIXEL); + if (availableBitDepth < bpp) { + printf("This application requires a greater colour depth.\n"); + destroyAll(); + return JNI_FALSE; + }; + + int iPixelFormat; + + // get the best available match of pixel format for the device context + iPixelFormat = ChoosePixelFormat(hdc, &pfd); + if (iPixelFormat == 0) { + printf("Failed to choose pixel format.\n"); + destroyAll(); + return JNI_FALSE; + } + + PIXELFORMATDESCRIPTOR desc; + if (DescribePixelFormat(hdc, iPixelFormat, sizeof(PIXELFORMATDESCRIPTOR), &desc) == 0) { + printf("Could not describe pixel format\n"); + destroyAll(); + return JNI_FALSE; + } + + if (desc.cColorBits < bpp) { + printf("This application requires a greater colour depth.\n"); + destroyAll(); + return JNI_FALSE; + } + + if (desc.cStencilBits < stencilBits) { + printf("This application requires a greater stencil depth.\n"); + destroyAll(); + return JNI_FALSE; + } + + if (desc.cDepthBits < depthBits) { + printf("This application requires a greater depth buffer depth.\n"); + destroyAll(); + return JNI_FALSE; + } + + if ((desc.dwFlags & flags) == 0) { + printf("Capabilities not supported.\n"); + destroyAll(); + return JNI_FALSE; + } + +#ifdef _DEBUG + printf("Pixel format is %d\n", iPixelFormat); +#endif + + // make that the pixel format of the device context + if (SetPixelFormat(hdc, iPixelFormat, &pfd) == FALSE) { + printf("Failed to set pixel format\n"); + destroyAll(); + return JNI_FALSE; + } + + jfieldID fid_handle = env->GetStaticFieldID(clazz, "handle", "I"); + env->SetStaticIntField(clazz, fid_handle, (jint) hwnd); + return JNI_TRUE; } @@ -406,7 +425,7 @@ */ JNIEXPORT void JNICALL Java_org_lwjgl_Display_nDestroy (JNIEnv * env, jclass clazz) -{ - destroyAll(); -} - +{ + destroyAll(); +} + |
From: Caspian Rychlik-P. <ci...@us...> - 2002-12-22 19:52:33
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory sc8-pr-cvs1:/tmp/cvs-serv8863/src/native/common Modified Files: org_lwjgl_Sys.h Log Message: Alert code Index: org_lwjgl_Sys.h CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/org_lwjgl_Sys.h =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/org_lwjgl_Sys.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- org_lwjgl_Sys.h 19 Aug 2002 11:30:45 -0000 1.2 +++ org_lwjgl_Sys.h 22 Dec 2002 19:52:31 -0000 1.3 @@ -17,6 +17,8 @@ #undef org_lwjgl_Sys_REALTIME_PRIORITY #define org_lwjgl_Sys_REALTIME_PRIORITY 2L /* Inaccessible static: LIBRARY_NAME */ +/* Inaccessible static: DEBUG */ +/* Inaccessible static: _debug */ /* Inaccessible static: class_000240 */ /* * Class: org_lwjgl_Sys @@ -65,6 +67,14 @@ */ JNIEXPORT void JNICALL Java_org_lwjgl_Sys_setProcessPriority (JNIEnv *, jclass, jint); + +/* + * Class: org_lwjgl_Sys + * Method: alert + * Signature: (Ljava/lang/String;Ljava/lang/String;)V + */ +JNIEXPORT void JNICALL Java_org_lwjgl_Sys_alert + (JNIEnv *, jclass, jstring, jstring); #ifdef __cplusplus } |
From: Caspian Rychlik-P. <ci...@us...> - 2002-12-22 19:52:19
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl In directory sc8-pr-cvs1:/tmp/cvs-serv8620/src/java/org/lwjgl Modified Files: Display.java DisplayMode.java Log Message: New DisplayMode code Index: Display.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/Display.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/Display.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- Display.java 21 Dec 2002 12:37:18 -0000 1.9 +++ Display.java 22 Dec 2002 19:52:15 -0000 1.10 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Lightweight Java Game Library Project + * Copyright (c) 2002 Light Weight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -81,18 +81,12 @@ * destroyed. * * @param displayMode a display mode to choose - * @param alpha_bits number of alpha bits required - * @param depth_bits number of depth bits required - * @param stencil_bits number of stencil bits required * @param fullscreen whether to create the display fullscreen * @throws Exception if the display mode could not be set * @see #destroy() */ public static void create( DisplayMode displayMode, - int alpha_bits, - int depth_bits, - int stencil_bits, boolean fullscreen) throws Exception { @@ -103,9 +97,9 @@ displayMode.height, displayMode.bpp, displayMode.freq, - alpha_bits, - depth_bits, - stencil_bits, + displayMode.alpha, + displayMode.depth, + displayMode.stencil, fullscreen)) throw new Exception("Failed to set display mode to " + displayMode); Index: DisplayMode.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/DisplayMode.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/DisplayMode.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- DisplayMode.java 21 Dec 2002 12:37:18 -0000 1.5 +++ DisplayMode.java 22 Dec 2002 19:52:15 -0000 1.6 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Lightweight Java Game Library Project + * Copyright (c) 2002 Light Weight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -43,18 +43,21 @@ public final class DisplayMode { - public final int width, height, bpp, freq; + public final int width, height, bpp, freq, alpha, depth, stencil; /** * Construct a display mode. * * @see Display */ - public DisplayMode(int width, int height, int bpp, int freq) { + private DisplayMode(int width, int height, int bpp, int freq, int alpha, int depth, int stencil) { this.width = width; this.height = height; this.bpp = bpp; this.freq = freq; + this.alpha = alpha; + this.depth = depth; + this.stencil = stencil; } @@ -69,14 +72,17 @@ return dm.width == width && dm.height == dm.height && dm.bpp == bpp - && dm.freq == freq; + && dm.freq == freq + && dm.alpha == alpha + && dm.depth == depth + && dm.stencil == stencil; } /* (non-Javadoc) * @see java.lang.Object#hashCode() */ public int hashCode() { - return width ^ height ^ freq ^ bpp; + return width ^ height ^ freq ^ bpp ^ alpha ^ (depth << 8) ^ (stencil << 24); } /* (non-Javadoc) @@ -91,7 +97,13 @@ sb.append(bpp); sb.append(" @"); sb.append(freq); - sb.append("Hz"); + sb.append("Hz "); + sb.append(alpha); + sb.append("bit alpha, "); + sb.append(depth); + sb.append("bit depth, "); + sb.append(stencil); + sb.append("bit stencil"); return sb.toString(); } |
From: Luke H. <lh...@us...> - 2002-12-22 19:25:45
|
Update of /cvsroot/java-game-lib/LWJGL/src/native In directory sc8-pr-cvs1:/tmp/cvs-serv22023 Removed Files: AUTHORS COPYING ChangeLog INSTALL NEWS README Log Message: standard autoconf stuff... we dont need --- AUTHORS DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/AUTHORS --- COPYING DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/COPYING --- ChangeLog DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/ChangeLog --- INSTALL DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/INSTALL --- NEWS DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/NEWS --- README DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/README |
From: Brian M. <ma...@us...> - 2002-12-22 00:54:04
|
Update of /cvsroot/java-game-lib/LWJGL In directory sc8-pr-cvs1:/tmp/cvs-serv24237 Modified Files: build.xml Log Message: add: cvs build target Index: build.xml CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/build.xml =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/build.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- build.xml 21 Dec 2002 23:25:54 -0000 1.3 +++ build.xml 22 Dec 2002 00:54:00 -0000 1.4 @@ -131,6 +131,17 @@ <antcall target="internal_clean"/> </target> + <target name="cvsbuild" description="Builds lwjgl, by exporting files from cvs into a LWJGL folder and executing the package target on that folders build file"> + <available file="LWJGL/build.xml" property="lwjgl.preexistingfiles"/> + <available file="${lwjgl.src}/java/org/lwjgl/Sys.java" property="lwjgl.preexistingfiles"/> + <fail if="lwjgl.preexistingfiles" message="Cannot perform webbuild from nonempty folder"/> + <cvs command="export -D 'now'" compressionlevel="3" cvsRoot=":pserver:ano...@cv...:/cvsroot/java-game-lib" package="LWJGL/build.xml" dest="."/> + <cvs command="export -D 'now'" compressionlevel="3" cvsRoot=":pserver:ano...@cv...:/cvsroot/java-game-lib" package="LWJGL/src" dest="."/> + <cvs command="export -D 'now'" compressionlevel="3" cvsRoot=":pserver:ano...@cv...:/cvsroot/java-game-lib" package="LWJGL/examples" dest="."/> + <cvs command="export -D 'now'" compressionlevel="3" cvsRoot=":pserver:ano...@cv...:/cvsroot/java-game-lib" package="LWJGL/doc" dest="."/> + <ant dir="LWJGL" target="package"/> + </target> + <!-- Creates a versioned distribution of dll's and jars --> <target name="distribution_application"> <!-- check for file presence --> @@ -211,4 +222,4 @@ <target name="internal_clean"> <delete dir="${lwjgl.temp}" taskname="cleanup"/> </target> -</project> +</project> \ No newline at end of file |
From: Elias N. <eli...@us...> - 2002-12-21 23:25:57
|
Update of /cvsroot/java-game-lib/LWJGL In directory sc8-pr-cvs1:/tmp/cvs-serv5624 Modified Files: build.xml Log Message: Fixed .so file entries in build.xml Index: build.xml CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/build.xml =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/build.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- build.xml 21 Dec 2002 22:52:34 -0000 1.2 +++ build.xml 21 Dec 2002 23:25:54 -0000 1.3 @@ -137,8 +137,8 @@ <available file="${lwjgl.lib}/OpenAL32.dll" property="lwjgl.OpenAL32_dll.exists"/> <fail unless="lwjgl.OpenAL32_dll.exists" message="Missing OpenAL32.dll in lib directory"/> - <available file="${lwjgl.lib}/OpenAL32.so" property="lwjgl.OpenAL32_so.exists"/> - <fail unless="lwjgl.OpenAL32_so.exists" message="Missing OpenAL32.so in lib directory"/> + <available file="${lwjgl.lib}/libopenal.so" property="lwjgl.libopenal_so.exists"/> + <fail unless="lwjgl.libopenal_so.exists" message="Missing libopenal.so in lib directory"/> <available file="${lwjgl.lib}/lwjgl.dll" property="lwjgl.lwjgl_dll.exists"/> <fail unless="lwjgl.lwjgl_dll.exists" message="Missing lwjgl.dll in lib directory"/> @@ -146,11 +146,11 @@ <available file="${lwjgl.lib}/lwjgl_d.dll" property="lwjgl.lwjgl_d_dll.exists"/> <fail unless="lwjgl.lwjgl_d_dll.exists" message="Missing lwjgl_d.dll in lib directory"/> - <available file="${lwjgl.lib}/lwjgl.so" property="lwjgl.lwjgl_so.exists"/> - <fail unless="lwjgl.lwjgl_so.exists" message="Missing lwjgl.so in lib directory"/> + <available file="${lwjgl.lib}/liblwjgl.so" property="lwjgl.liblwjgl_so.exists"/> + <fail unless="lwjgl.liblwjgl_so.exists" message="Missing liblwjgl.so in lib directory"/> - <available file="${lwjgl.lib}/lwjgl_d.so" property="lwjgl.lwjgl_d_so.exists"/> - <fail unless="lwjgl.lwjgl_d_so.exists" message="Missing lwjgl_d.so in lib directory"/> + <available file="${lwjgl.lib}/liblwjgl_d.so" property="lwjgl.liblwjgl_d_so.exists"/> + <fail unless="lwjgl.liblwjgl_d_so.exists" message="Missing liblwjgl_d.so in lib directory"/> <available file="${lwjgl.lib}/lwjgl.jar" property="lwjgl.lwjgl_jar.exists"/> <fail unless="lwjgl.lwjgl_jar.exists" message="Missing lwjgl.jar in lib directory"/> @@ -211,4 +211,4 @@ <target name="internal_clean"> <delete dir="${lwjgl.temp}" taskname="cleanup"/> </target> -</project> \ No newline at end of file +</project> |
From: Brian M. <ma...@us...> - 2002-12-21 23:01:35
|
Update of /cvsroot/java-game-lib/LWJGL/doc/spec In directory sc8-pr-cvs1:/tmp/cvs-serv31117 Removed Files: manifest.txt Log Message: die die DIE!!! --- manifest.txt DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/doc/spec/manifest.txt |
From: Brian M. <ma...@us...> - 2002-12-21 23:00:21
|
Update of /cvsroot/java-game-lib/LWJGL/doc In directory sc8-pr-cvs1:/tmp/cvs-serv30805 Removed Files: manifest.txt Log Message: die die DIE!!! --- manifest.txt DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/doc/manifest.txt |
From: Brian M. <ma...@us...> - 2002-12-21 22:58:14
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/win32 In directory sc8-pr-cvs1:/tmp/cvs-serv30180 Removed Files: manifest.txt Log Message: die die DIE!!! --- manifest.txt DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/win32/manifest.txt |
From: Brian M. <ma...@us...> - 2002-12-21 22:58:03
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common In directory sc8-pr-cvs1:/tmp/cvs-serv30106 Removed Files: manifest.txt Log Message: die die DIE!!! --- manifest.txt DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/common/manifest.txt |
From: Brian M. <ma...@us...> - 2002-12-21 22:57:11
|
Update of /cvsroot/java-game-lib/LWJGL/src/native In directory sc8-pr-cvs1:/tmp/cvs-serv29938 Removed Files: manifest.txt Log Message: die die DIE!!! --- manifest.txt DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/manifest.txt |
From: Brian M. <ma...@us...> - 2002-12-21 22:55:37
|
Update of /cvsroot/java-game-lib/LWJGL In directory sc8-pr-cvs1:/tmp/cvs-serv29652 Removed Files: manifest.txt Log Message: die die DIE!!! --- manifest.txt DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/manifest.txt |
From: Brian M. <ma...@us...> - 2002-12-21 22:52:37
|
Update of /cvsroot/java-game-lib/LWJGL In directory sc8-pr-cvs1:/tmp/cvs-serv28862 Modified Files: build.xml Log Message: initial stab at ant build script Index: build.xml CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/build.xml =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/build.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- build.xml 11 Aug 2002 23:38:49 -0000 1.1 +++ build.xml 21 Dec 2002 22:52:34 -0000 1.2 @@ -1,47 +1,214 @@ +<project name="LWJGL" default="compile" basedir="."> -<!-- Designed using ant 1.4 --> + <!-- set global properties for this build --> + <property name="lwjgl.src" value="./src"/> + <property name="lwjgl.bin" value="./bin"/> + <property name="lwjgl.lib" value="./lib"/> + <property name="lwjgl.dist" value="./dist"/> + <property name="lwjgl.docs" value="./doc"/> + <property name="lwjgl.temp" value="./temp"/> + <property name="lwjgl.test" value="./test"/> + <property name="lwjgl.version" value="0.4"/> + + <!-- Creates a splash screen --> + <target name="splash"> + <splash imageurl="http://java-game-lib.sourceforge.net/images/logo.png" showduration="0" taskname="progressscreen"/> + </target> + + <!-- Initializes whatever needs to be done before any targets are executed --> + <target name="initialize"> + <mkdir dir="${lwjgl.bin}" taskname="initialiazing bin folder"/> + <mkdir dir="${lwjgl.lib}" taskname="initialiazing lib folder"/> + <mkdir dir="${lwjgl.dist}" taskname="initialiazing dist folder"/> + <mkdir dir="${lwjgl.docs}/javadoc" taskname="initialiazing docs folder"/> + <mkdir dir="${lwjgl.test}" taskname="initialiazing test folder"/> + <mkdir dir="${lwjgl.temp}" taskname="initialiazing temp folder"/> + </target> + + <target name="all" depends="splash" description="compile. package. javadoc and distribute"> + + <!-- + Though we perform all targets, we do it in somewhat mixed. + This is because we want the 'distribution_application' target to be + executed as soon as possible, since this target is most likely to fail. + That way we don't spend time doing javadocs, if the 'distribution_application' + target is going to fail anyway. However we cannot call the 'distribution' before + the javadoc target, since the 'distribution' target will try to create the javadoc + archive. + --> + + <antcall target="clean"/> + <antcall target="compile"/> + <antcall target="package"/> + <antcall target="distribution_application"/> + <antcall target="javadoc"/> + <antcall target="distribution_javadoc"/> + <antcall target="distribution_source"/> + <antcall target="internal_clean"/> + </target> -<project name="LWJGL" default="build website" basedir="."> + <target name="clean" description="Cleans the diectories controlled by this ant script (temp, dist, lib, javadoc, class files in bin)"> + <delete dir="${lwjgl.temp}" quiet="true" taskname="cleaning temp folder"/> + <delete dir="${lwjgl.dist}" quiet="true" taskname="cleaning dist folder"/> + <delete dir="${lwjgl.docs}/javadoc" quiet="true" taskname="cleaning javadoc folder"/> + <delete dir="${lwjgl.bin}/org" quiet="true" taskname="cleaning bin folder"/> + <delete taskname="cleaning bin folder"> + <fileset dir="${lwjgl.bin}" includes="*.class"/> + </delete> + </target> + <target name="compile" depends="initialize" description="Compiles the java source directory"> + <javac srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/**.java" source="1.4" taskname="lwjgl"/> + <javac srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/input/**" source="1.4" taskname="input"/> + <javac srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/openal/**" source="1.4" taskname="openal"/> + <javac srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/opengl/**" source="1.4" taskname="opengl"/> + <javac srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/test/**" source="1.4" taskname="test"/> + <javac srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/vector/**" source="1.4" taskname="vector"/> + <javac srcdir="examples/" destdir="${lwjgl.bin}/" includes="**" source="1.4" taskname="examples"/> + </target> - <!-- set global properties for this build --> - <property name="src" value="./src"/> - <property name="bin" value="./bin"/> - <property name="lib" value="./lib"/> - <property name="finish" value="."/> - <property name="docs" value="./docs"/> - <property name="website" value="./website"/> - <property name="resources" value="./content"/> - <property name="ver" value="0_0_1"/> + <target name="package" depends="compile" description="packages the java source files"> + <!-- Create lwjgl.jar --> + <jar destfile="${lwjgl.lib}/lwjgl.jar" taskname="lwjgl.jar"> + <fileset dir="${lwjgl.bin}"> + <include name="**"/> + <exclude name="**.*"/> + <exclude name="org/lwjgl/test/**"/> + </fileset> + </jar> + + <!-- Create lwjgl_test.jar --> + <jar destfile="${lwjgl.lib}/lwjgl_test.jar" taskname="lwjgl_test.jar"> + <fileset dir="${lwjgl.bin}"> + <exclude name="**.*"/> + <include name="org/lwjgl/test/**"/> + </fileset> + </jar> + + <!-- Create examples.jar --> + <jar destfile="${lwjgl.lib}/examples.jar" taskname="examples.jar"> + <fileset dir="${lwjgl.bin}"> + <include name="**.class"/> + </fileset> + </jar> + + <!-- copy dll/so to lib directory --> + <copy todir="${lwjgl.lib}" taskname="libraries"> + <fileset dir="${lwjgl.bin}"> + <include name="lwjgl.*"/> + <include name="lwjgl_d.*"/> + </fileset> + </copy> + + <!-- Copy relevant files to test directory --> + <copy todir="${lwjgl.test}" taskname="jar"> + <fileset dir="${lwjgl.lib}"/> + </copy> + + <!-- copy data files for example --> + <copy todir="${lwjgl.test}/data" taskname="data"> + <fileset dir="examples/data"/> + </copy> + </target> - <!-- Temporary directorys --> - <property name="build" value="./tmp"/> - <property name="dist" value="./dist/tmp"/> - - <target name="build website"> - <echo> Generating Docs / Website files </echo> + <target name="javadoc" description="Creates javadoc from java source code"> + <javadoc destdir="${lwjgl.docs}/javadoc" author="true" version="true" use="true" source="1.4" windowtitle="LWJGL API"> - <delete> - <fileset dir="${website}"> - <include name="*.html"/> - </fileset> - </delete> + <fileset dir="${lwjgl.src}/java"> + <include name="**" /> + <exclude name="org/lwjgl/test/**"/> + </fileset> - <style basedir="${resources}" destdir="${website}" extension=".html" style="${resources}/simple.xsl"> - <include name="*.xml"/> - </style> - </target> + <doctitle><![CDATA[<h1>Lightweight Java Game Toolkit</h1>]]></doctitle> + <bottom><![CDATA[<i>Copyright © 2002 lwjgl.org. All Rights Reserved.</i>]]></bottom> + </javadoc> + </target> + + <target name="distribution" depends="package" description="Creates a versioned distribution of lwjgl"> + <antcall target="distribution_application"/> + <antcall target="distribution_javadoc"/> + <antcall target="distribution_source"/> + <antcall target="internal_clean"/> + </target> + + <!-- Creates a versioned distribution of dll's and jars --> + <target name="distribution_application"> + <!-- check for file presence --> + <available file="${lwjgl.lib}/OpenAL32.dll" property="lwjgl.OpenAL32_dll.exists"/> + <fail unless="lwjgl.OpenAL32_dll.exists" message="Missing OpenAL32.dll in lib directory"/> + + <available file="${lwjgl.lib}/OpenAL32.so" property="lwjgl.OpenAL32_so.exists"/> + <fail unless="lwjgl.OpenAL32_so.exists" message="Missing OpenAL32.so in lib directory"/> + + <available file="${lwjgl.lib}/lwjgl.dll" property="lwjgl.lwjgl_dll.exists"/> + <fail unless="lwjgl.lwjgl_dll.exists" message="Missing lwjgl.dll in lib directory"/> + <available file="${lwjgl.lib}/lwjgl_d.dll" property="lwjgl.lwjgl_d_dll.exists"/> + <fail unless="lwjgl.lwjgl_d_dll.exists" message="Missing lwjgl_d.dll in lib directory"/> -<!-- Targets below could be used to build the main project --> + <available file="${lwjgl.lib}/lwjgl.so" property="lwjgl.lwjgl_so.exists"/> + <fail unless="lwjgl.lwjgl_so.exists" message="Missing lwjgl.so in lib directory"/> - <target name="compile" > - <echo>Not Implemented</echo> - </target> + <available file="${lwjgl.lib}/lwjgl_d.so" property="lwjgl.lwjgl_d_so.exists"/> + <fail unless="lwjgl.lwjgl_d_so.exists" message="Missing lwjgl_d.so in lib directory"/> + + <available file="${lwjgl.lib}/lwjgl.jar" property="lwjgl.lwjgl_jar.exists"/> + <fail unless="lwjgl.lwjgl_jar.exists" message="Missing lwjgl.jar in lib directory"/> - <target name="build distribution" depends="compile"> - <echo>Not Implemented</echo> + <available file="${lwjgl.lib}/lwjgl_test.jar" property="lwjgl.lwjgl_test_jar.exists"/> + <fail unless="lwjgl.lwjgl_test_jar.exists" message="Missing lwjgl_test.jar in lib directory"/> + + <available file="${lwjgl.lib}/examples.jar" property="lwjgl.examples_jar.exists"/> + <fail unless="lwjgl.examples_jar.exists" message="Missing examples.jar in lib directory"/> + + <mkdir dir="${lwjgl.temp}/lwjgl-${lwjgl.version}"/> + + <!-- copy files to lwjgl directory for proper zipping --> + <copy todir="${lwjgl.temp}/lwjgl-${lwjgl.version}"> + <fileset dir="${lwjgl.lib}/"> + <include name="lwjgl.dll"/> + <include name="lwjgl_d.dll"/> + <include name="lwjgl.so"/> + <include name="lwjgl_d.so"/> + <include name="lwjgl.jar"/> + <include name="lwjgl_test.jar"/> + <include name="examples.jar"/> + </fileset> + <fileset dir="${lwjgl.docs}"> + <include name="CREDITS"/> + <include name="LICENSE"/> + <include name="README"/> + </fileset> + </copy> + + <!-- zip 'em up --> + <zip destfile="${lwjgl.dist}/lwjgl-${lwjgl.version}.zip" basedir="${lwjgl.temp}/"/> </target> - -</project> + <!-- Creates a versioned distribution of javadocs --> + <target name="distribution_javadoc"> + <zip destfile="${lwjgl.dist}/lwjgl-docs-${lwjgl.version}.zip" basedir="${lwjgl.docs}" includes="javadoc/**"/> + </target> + + <!-- Creates a versioned distribution of the source code --> + <target name="distribution_source"> + <zip destfile="${lwjgl.dist}/lwjgl-source-${lwjgl.version}.zip"> + <fileset dir="${lwjgl.src}/"> + <patternset> + <include name="**/*.java"/> + <include name="**/*.cpp"/> + <include name="**/*.c"/> + <include name="**/*.h"/> + <include name="**/*.am"/> + <exclude name="**/*CVS*"/> + <exclude name="**/.*"/> + </patternset> + </fileset> + </zip> + </target> + + <!-- clean internal temporary directories --> + <target name="internal_clean"> + <delete dir="${lwjgl.temp}" taskname="cleanup"/> + </target> +</project> \ No newline at end of file |
From: Brian M. <ma...@us...> - 2002-12-21 22:50:48
|
Update of /cvsroot/java-game-lib/LWJGL/examples In directory sc8-pr-cvs1:/tmp/cvs-serv28463 Modified Files: BaseWindow.java Log Message: fixed creation of display Index: BaseWindow.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/examples/BaseWindow.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/examples/BaseWindow.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- BaseWindow.java 18 Dec 2002 21:39:02 -0000 1.3 +++ BaseWindow.java 21 Dec 2002 22:50:43 -0000 1.4 @@ -110,8 +110,8 @@ protected void createGLWindow(int width, int height, int bits, boolean fullscreenflag) throws Exception { fullscreen = fullscreenflag; try { - Display.create(new DisplayMode(width, height, bits, 60), fullscreenflag); - gl = new GL(bits, 0, bits, 8); + Display.create(new DisplayMode(width, height, bits, 60), 8, 32, 0, fullscreenflag); + gl = new GL(); gl.create(); glu = new GLU(gl); Keyboard.create(); |
From: Brian M. <ma...@us...> - 2002-12-21 12:59:47
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl In directory sc8-pr-cvs1:/tmp/cvs-serv6932 Modified Files: Grass.java Log Message: cr/lf fix Index: Grass.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl/Grass.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl/Grass.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Grass.java 21 Dec 2002 12:49:17 -0000 1.4 +++ Grass.java 21 Dec 2002 12:59:43 -0000 1.5 @@ -1,346 +1,346 @@ -/* - * Copyright (c) 2002 Lightweight Java Game Library Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * * Neither the name of 'Light Weight Java Game Library' nor the names of - * its contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED - * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/** - * $Id$ - * - * Simple java test program. - * - * @author elias_naur <eli...@us...> - * @version $Revision$ - */ - -package org.lwjgl.test.opengl; - -import org.lwjgl.input.*; -import org.lwjgl.opengl.*; -import org.lwjgl.*; - -import java.net.*; -import java.io.*; -import java.nio.*; -import java.util.*; - -class Aslod { - float angle; - float value; - float ripple; - float count; -} - -public class Grass { - - private static boolean finished = false; - private static Random rand = new Random(); - - static { - try { - DisplayMode[] modes = Display.getAvailableDisplayModes(); - System.out.println("Available display modes:"); - for (int i = 0; i < modes.length; i ++) - System.out.println(modes[i]); - // For now let's just pick a mode we're certain to have - Display.create(new DisplayMode(800, 600, 16, 60), 8, 16, 0, false); - System.out.println("Created display."); - } catch (Exception e) { - System.err.println("Failed to create display due to "+e); - System.exit(1); - } - } - - public static final GL gl = new GL(); - public static final GLU glu = new GLU(gl); - - static { - try { - gl.create(); - Keyboard.create(); - Keyboard.enableBuffer(); - Mouse.create(); - System.out.println("Created OpenGL."); - } catch (Exception e) { - System.err.println("Failed to create OpenGL due to "+e); - System.exit(1); - } - - } - - private static Aslod aslod = new Aslod(); - - private static int mesh; - private static int program_handle; - - private static byte[] loadFile(String file) { - int next; - java.util.Vector bytes = new java.util.Vector(); - try { - ClassLoader loader = ClassLoader.getSystemClassLoader(); - URL url = loader.getResource(file); - InputStream stream = new BufferedInputStream(url.openStream()); - while ((next = (stream.read())) != -1) - bytes.add(new Byte((byte)next)); - stream.close(); - byte[] result = new byte[bytes.size()]; - for (int i = 0; i < result.length; i++) - result[i] = ((Byte)bytes.get(i)).byteValue(); - return result; - } catch (Exception e) { - e.printStackTrace(); - } - return null; - } - - - public static void main(String[] args) { - ByteBuffer byte_buf = ByteBuffer.allocateDirect(4); - byte_buf.order(ByteOrder.nativeOrder()); - System.out.println("Vertex program supported: " + gl.NV_vertex_program); - gl.genProgramsNV(1, Sys.getDirectBufferAddress(byte_buf)); - IntBuffer int_buf = byte_buf.asIntBuffer(); - if (int_buf.get(0) == 0) - throw new RuntimeException("Could not allocate new vertex program id!"); - - program_handle = int_buf.get(0); - byte[] program = loadFile("cg_grass2.vp"); - ByteBuffer program_buf = ByteBuffer.allocateDirect(program.length); - program_buf.order(ByteOrder.nativeOrder()); - program_buf.rewind(); - program_buf.put(program); - program_buf.rewind(); - gl.loadProgramNV(GL.VERTEX_PROGRAM_NV, program_handle, program_buf.remaining(), Sys.getDirectBufferAddress(program_buf)); - /*gl.getIntegerv(GL.PROGRAM_ERROR_POSITION_NV, Sys.getDirectBufferAddress(int_buf)); - System.out.println("error position: " + int_buf.get(0));*/ - - genMesh(); - - float[] LightDiffuse = {1.0f, 0.0f, 0.0f, 1.0f}; - float[] LightPosition = {1.0f, 1.0f, 1.0f, 0.0f}; - ByteBuffer light_buf = ByteBuffer.allocateDirect(4*4); - light_buf.order(ByteOrder.nativeOrder()); - FloatBuffer light_buf_f = light_buf.asFloatBuffer(); - light_buf_f.rewind(); - light_buf_f.put(LightDiffuse); - - gl.lightfv(GL.LIGHT0, GL.DIFFUSE, Sys.getDirectBufferAddress(light_buf_f)); - light_buf_f.rewind(); - light_buf_f.put(LightPosition); - gl.lightfv(GL.LIGHT0, GL.POSITION, Sys.getDirectBufferAddress(light_buf_f)); - gl.enable(GL.LIGHT0); - - gl.enable(GL.LIGHTING); - - gl.enable(GL.DEPTH_TEST); - - gl.blendFunc(GL.SRC_ALPHA, GL.ONE_MINUS_SRC_ALPHA); - gl.enable(GL.BLEND); - - gl.matrixMode(GL.PROJECTION); - glu.perspective(40.0, 1.0, 1.0, 50.0); - - gl.matrixMode(GL.MODELVIEW); - - glu.lookAt(14.0, 10.0, -16.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); - - aslod.angle = 2.6179935f; - aslod.value = 0.2f; - aslod.ripple = 0.0f; - aslod.count = 0.0f; - - while (!finished) { - keyPoll(); - float degree = (1.0f + (aslod.value * 20.0f)) * 0.01745329f; - - degree *= (0.5 + myrand()) ; - - ptrAnimate(degree); - gl.clear(GL.COLOR_BUFFER_BIT | GL.DEPTH_BUFFER_BIT); - - //ptrDraw(); - - grsDraw(); - - gl.swapBuffers(); - } - Mouse.destroy(); - Keyboard.destroy(); - gl.destroy(); - Display.destroy(); - } - - private static float myrand() { - // returns a value between 0 and 1 - return rand.nextFloat(); - } - - private static void genGrass( float fFaceHeight, float fFaceWidth, float fX, float fZ ) { - int cFaces; - int numFaces; - float cWidth; - float fDecWidth, frndWidth, frndHeight; - float fRotate; - float fRigid; - - numFaces = 5; - frndHeight = fFaceHeight + ((fFaceHeight / 1.5f) * (float)java.lang.Math.cos(java.lang.Math.abs(rand.nextInt()))); - frndWidth = fFaceWidth + ((fFaceWidth / 4.0f) * (float)java.lang.Math.cos(java.lang.Math.abs(rand.nextInt()))); - fDecWidth = frndWidth / 5.0f; - fRotate = myrand() * 3.1415f; - fRigid = ((fRigid = myrand()) < 0.2f) ? 0.2f : fRigid; - - if (myrand() < 0.3) - gl.begin(GL.LINE_STRIP); - else - gl.begin(GL.QUAD_STRIP); - - for (cFaces = 0; cFaces < numFaces; cFaces++) - { - for (cWidth = frndWidth; cWidth >=-frndWidth; cWidth-=(frndWidth * 2.0f)) - { - gl.color4f(fX, fRigid, fZ, (float)cFaces/(float)numFaces); - gl.vertex3f((float)(((cFaces-2)*0.1f)*java.lang.Math.cos(fRotate)+(cWidth)*java.lang.Math.sin(fRotate)), cFaces*frndHeight, - -(float)(((cFaces-2)*0.1f)*java.lang.Math.sin(fRotate) + (cWidth)*java.lang.Math.cos(fRotate))); - } - frndWidth -= fDecWidth; - } - gl.end(); - - } - - private static void genMesh() { - float cI, cJ, fArea; - - fArea = 20.0f; - mesh = gl.genLists(1); - gl.newList(mesh, GL.COMPILE); - for (cI = -fArea/2; cI < fArea/2; cI+=0.25f) - { - for (cJ = -fArea/2; cJ < fArea/2; cJ+=0.25f) - { - genGrass(0.5f, 0.1f, cI, cJ); - } - } - gl.endList(); - - } - - private static void grsDraw() - { - gl.enable(GL.VERTEX_PROGRAM_NV); - gl.bindProgramNV(GL.VERTEX_PROGRAM_NV, program_handle); - gl.trackMatrixNV(GL.VERTEX_PROGRAM_NV, 0, GL.MODELVIEW_PROJECTION_NV, GL.IDENTITY_NV); - - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 4, 0.0f, 0.0f, 0.0f, 0.0f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 5, 0.0f, 0.0f, 0.0f, 0.0f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 6, 1.763609f, 0.496495f, 0.0f, 0.0f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 7, -0.943599f, 3.203737f, 0.0f, 0.0f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 8, 4.101107f, 0.943413f, 0.0f, 0.0f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 9, -1.218603f, 6.259399f, 0.0f, 0.0f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 10, 7.214299f, 1.352961f, 0.0f, 0.0f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 11, -1.540748f, 10.080958f, 0.0f, 0.0f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 12, 10.880035f, 1.759046f, 0.0f, 0.0f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 13, -1.852705f, 14.468674f, 0.0f, 0.0f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 14, 14.292879f, 1.973329f, 0.0f, 0.0f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 15, -1.973387f, 18.506531f, 0.0f, 0.0f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 16, (float)(java.lang.Math.sin(aslod.angle) * (aslod.value + aslod.ripple)), 0.0f, (float)(java.lang.Math.cos(aslod.angle) * (aslod.value + aslod.ripple)), 0.0f); - - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 17, 1.7f, 5f, 2f, 0f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 18, -0.0187293f, 0.074261f, 0.2121144f, 1.570729f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 20, 0f, 0.5f, 1f, 0f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 21, 0.25f, -9f, 0.75f, 0.1591549f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 22, 24.9808f, -24.9808f, -60.14581f, 60.14581f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 23, 85.45379f, -85.45379f, -64.93935f, 64.93935f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 24, 19.73921f, -19.73921f, -1f, 1f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 25, 0f, 4f, 0f, 0f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 19, 1f, 3.141593f, 0.5f, 1f); - gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 26, 0.7f, 0.4f, 0f, 0f); - gl.callList(mesh); - gl.disable(GL.VERTEX_PROGRAM_NV); - - } - -/* private static void ptrDraw() - { - glRotatef((aslod.angle * 180.0f) / 3.1415f, 0, 1, 0); - glTranslatef(0, 4.5, -7.5); - glRotatef(-90, 0, 1, 0); - glRotatef(-45, 0, 0, 1); - - glMaterialfv(GL.FRONT, GL.AMBIENT, vec4f(.1f,.1f,0,1).v); - glMaterialfv(GL.FRONT, GL.DIFFUSE, vec4f(.6f,.6f,.1f,1).v); - glMaterialfv(GL.FRONT, GL.SPECULAR, vec4f(1,1,.75f,1).v); - glMaterialf(GL.FRONT, GL.SHININESS, 128.f); - - glutSolidTeapot(aslod.value*5); - - gl.rotatef(45, 0, 0, 1); - gl.totatef(90, 0, 1, 0); - gl.translatef(0, -4.5, 7.5); - gl.rotatef(-(aslod.angle * 180.0f) / 3.1415f, 0f, 1f, 0f); - - } -*/ - private static void ptrAnimate(float degree) - { - aslod.count += degree; - aslod.ripple = (float)(java.lang.Math.cos(aslod.count) / 80.0); - - } - - private static void keyPoll() { - Keyboard.read(); - for (int i = 0; i < Keyboard.getNumKeyboardEvents(); i++) { - Keyboard.next(); - if (!Keyboard.state) - continue; - switch(Keyboard.key) - { - case Keyboard.KEY_A: - aslod.angle += 0.1; - break; - case Keyboard.KEY_D: - aslod.angle -= 0.1; - break; - case Keyboard.KEY_W: - aslod.value += (aslod.value >= 0.15) ? 0.0 : 0.0025; - break; - case Keyboard.KEY_S: - aslod.value -= (aslod.value <= 0.005) ? 0.0 : 0.0025; - break; - case Keyboard.KEY_ESCAPE: - finished = true; - break; - } - } - } - -} - +/* + * Copyright (c) 2002 Lightweight Java Game Library Project + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * * Neither the name of 'Light Weight Java Game Library' nor the names of + * its contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/** + * $Id$ + * + * Simple java test program. + * + * @author elias_naur <eli...@us...> + * @version $Revision$ + */ + +package org.lwjgl.test.opengl; + +import org.lwjgl.input.*; +import org.lwjgl.opengl.*; +import org.lwjgl.*; + +import java.net.*; +import java.io.*; +import java.nio.*; +import java.util.*; + +class Aslod { + float angle; + float value; + float ripple; + float count; +} + +public class Grass { + + private static boolean finished = false; + private static Random rand = new Random(); + + static { + try { + DisplayMode[] modes = Display.getAvailableDisplayModes(); + System.out.println("Available display modes:"); + for (int i = 0; i < modes.length; i ++) + System.out.println(modes[i]); + // For now let's just pick a mode we're certain to have + Display.create(new DisplayMode(800, 600, 16, 60), 8, 16, 0, false); + System.out.println("Created display."); + } catch (Exception e) { + System.err.println("Failed to create display due to "+e); + System.exit(1); + } + } + + public static final GL gl = new GL(); + public static final GLU glu = new GLU(gl); + + static { + try { + gl.create(); + Keyboard.create(); + Keyboard.enableBuffer(); + Mouse.create(); + System.out.println("Created OpenGL."); + } catch (Exception e) { + System.err.println("Failed to create OpenGL due to "+e); + System.exit(1); + } + + } + + private static Aslod aslod = new Aslod(); + + private static int mesh; + private static int program_handle; + + private static byte[] loadFile(String file) { + int next; + java.util.Vector bytes = new java.util.Vector(); + try { + ClassLoader loader = ClassLoader.getSystemClassLoader(); + URL url = loader.getResource(file); + InputStream stream = new BufferedInputStream(url.openStream()); + while ((next = (stream.read())) != -1) + bytes.add(new Byte((byte)next)); + stream.close(); + byte[] result = new byte[bytes.size()]; + for (int i = 0; i < result.length; i++) + result[i] = ((Byte)bytes.get(i)).byteValue(); + return result; + } catch (Exception e) { + e.printStackTrace(); + } + return null; + } + + + public static void main(String[] args) { + ByteBuffer byte_buf = ByteBuffer.allocateDirect(4); + byte_buf.order(ByteOrder.nativeOrder()); + System.out.println("Vertex program supported: " + gl.NV_vertex_program); + gl.genProgramsNV(1, Sys.getDirectBufferAddress(byte_buf)); + IntBuffer int_buf = byte_buf.asIntBuffer(); + if (int_buf.get(0) == 0) + throw new RuntimeException("Could not allocate new vertex program id!"); + + program_handle = int_buf.get(0); + byte[] program = loadFile("cg_grass2.vp"); + ByteBuffer program_buf = ByteBuffer.allocateDirect(program.length); + program_buf.order(ByteOrder.nativeOrder()); + program_buf.rewind(); + program_buf.put(program); + program_buf.rewind(); + gl.loadProgramNV(GL.VERTEX_PROGRAM_NV, program_handle, program_buf.remaining(), Sys.getDirectBufferAddress(program_buf)); + /*gl.getIntegerv(GL.PROGRAM_ERROR_POSITION_NV, Sys.getDirectBufferAddress(int_buf)); + System.out.println("error position: " + int_buf.get(0));*/ + + genMesh(); + + float[] LightDiffuse = {1.0f, 0.0f, 0.0f, 1.0f}; + float[] LightPosition = {1.0f, 1.0f, 1.0f, 0.0f}; + ByteBuffer light_buf = ByteBuffer.allocateDirect(4*4); + light_buf.order(ByteOrder.nativeOrder()); + FloatBuffer light_buf_f = light_buf.asFloatBuffer(); + light_buf_f.rewind(); + light_buf_f.put(LightDiffuse); + + gl.lightfv(GL.LIGHT0, GL.DIFFUSE, Sys.getDirectBufferAddress(light_buf_f)); + light_buf_f.rewind(); + light_buf_f.put(LightPosition); + gl.lightfv(GL.LIGHT0, GL.POSITION, Sys.getDirectBufferAddress(light_buf_f)); + gl.enable(GL.LIGHT0); + + gl.enable(GL.LIGHTING); + + gl.enable(GL.DEPTH_TEST); + + gl.blendFunc(GL.SRC_ALPHA, GL.ONE_MINUS_SRC_ALPHA); + gl.enable(GL.BLEND); + + gl.matrixMode(GL.PROJECTION); + glu.perspective(40.0, 1.0, 1.0, 50.0); + + gl.matrixMode(GL.MODELVIEW); + + glu.lookAt(14.0, 10.0, -16.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0); + + aslod.angle = 2.6179935f; + aslod.value = 0.2f; + aslod.ripple = 0.0f; + aslod.count = 0.0f; + + while (!finished) { + keyPoll(); + float degree = (1.0f + (aslod.value * 20.0f)) * 0.01745329f; + + degree *= (0.5 + myrand()) ; + + ptrAnimate(degree); + gl.clear(GL.COLOR_BUFFER_BIT | GL.DEPTH_BUFFER_BIT); + + //ptrDraw(); + + grsDraw(); + + gl.swapBuffers(); + } + Mouse.destroy(); + Keyboard.destroy(); + gl.destroy(); + Display.destroy(); + } + + private static float myrand() { + // returns a value between 0 and 1 + return rand.nextFloat(); + } + + private static void genGrass( float fFaceHeight, float fFaceWidth, float fX, float fZ ) { + int cFaces; + int numFaces; + float cWidth; + float fDecWidth, frndWidth, frndHeight; + float fRotate; + float fRigid; + + numFaces = 5; + frndHeight = fFaceHeight + ((fFaceHeight / 1.5f) * (float)java.lang.Math.cos(java.lang.Math.abs(rand.nextInt()))); + frndWidth = fFaceWidth + ((fFaceWidth / 4.0f) * (float)java.lang.Math.cos(java.lang.Math.abs(rand.nextInt()))); + fDecWidth = frndWidth / 5.0f; + fRotate = myrand() * 3.1415f; + fRigid = ((fRigid = myrand()) < 0.2f) ? 0.2f : fRigid; + + if (myrand() < 0.3) + gl.begin(GL.LINE_STRIP); + else + gl.begin(GL.QUAD_STRIP); + + for (cFaces = 0; cFaces < numFaces; cFaces++) + { + for (cWidth = frndWidth; cWidth >=-frndWidth; cWidth-=(frndWidth * 2.0f)) + { + gl.color4f(fX, fRigid, fZ, (float)cFaces/(float)numFaces); + gl.vertex3f((float)(((cFaces-2)*0.1f)*java.lang.Math.cos(fRotate)+(cWidth)*java.lang.Math.sin(fRotate)), cFaces*frndHeight, + -(float)(((cFaces-2)*0.1f)*java.lang.Math.sin(fRotate) + (cWidth)*java.lang.Math.cos(fRotate))); + } + frndWidth -= fDecWidth; + } + gl.end(); + + } + + private static void genMesh() { + float cI, cJ, fArea; + + fArea = 20.0f; + mesh = gl.genLists(1); + gl.newList(mesh, GL.COMPILE); + for (cI = -fArea/2; cI < fArea/2; cI+=0.25f) + { + for (cJ = -fArea/2; cJ < fArea/2; cJ+=0.25f) + { + genGrass(0.5f, 0.1f, cI, cJ); + } + } + gl.endList(); + + } + + private static void grsDraw() + { + gl.enable(GL.VERTEX_PROGRAM_NV); + gl.bindProgramNV(GL.VERTEX_PROGRAM_NV, program_handle); + gl.trackMatrixNV(GL.VERTEX_PROGRAM_NV, 0, GL.MODELVIEW_PROJECTION_NV, GL.IDENTITY_NV); + + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 4, 0.0f, 0.0f, 0.0f, 0.0f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 5, 0.0f, 0.0f, 0.0f, 0.0f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 6, 1.763609f, 0.496495f, 0.0f, 0.0f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 7, -0.943599f, 3.203737f, 0.0f, 0.0f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 8, 4.101107f, 0.943413f, 0.0f, 0.0f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 9, -1.218603f, 6.259399f, 0.0f, 0.0f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 10, 7.214299f, 1.352961f, 0.0f, 0.0f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 11, -1.540748f, 10.080958f, 0.0f, 0.0f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 12, 10.880035f, 1.759046f, 0.0f, 0.0f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 13, -1.852705f, 14.468674f, 0.0f, 0.0f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 14, 14.292879f, 1.973329f, 0.0f, 0.0f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 15, -1.973387f, 18.506531f, 0.0f, 0.0f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 16, (float)(java.lang.Math.sin(aslod.angle) * (aslod.value + aslod.ripple)), 0.0f, (float)(java.lang.Math.cos(aslod.angle) * (aslod.value + aslod.ripple)), 0.0f); + + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 17, 1.7f, 5f, 2f, 0f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 18, -0.0187293f, 0.074261f, 0.2121144f, 1.570729f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 20, 0f, 0.5f, 1f, 0f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 21, 0.25f, -9f, 0.75f, 0.1591549f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 22, 24.9808f, -24.9808f, -60.14581f, 60.14581f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 23, 85.45379f, -85.45379f, -64.93935f, 64.93935f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 24, 19.73921f, -19.73921f, -1f, 1f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 25, 0f, 4f, 0f, 0f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 19, 1f, 3.141593f, 0.5f, 1f); + gl.programParameter4fNV( GL.VERTEX_PROGRAM_NV, 26, 0.7f, 0.4f, 0f, 0f); + gl.callList(mesh); + gl.disable(GL.VERTEX_PROGRAM_NV); + + } + +/* private static void ptrDraw() + { + glRotatef((aslod.angle * 180.0f) / 3.1415f, 0, 1, 0); + glTranslatef(0, 4.5, -7.5); + glRotatef(-90, 0, 1, 0); + glRotatef(-45, 0, 0, 1); + + glMaterialfv(GL.FRONT, GL.AMBIENT, vec4f(.1f,.1f,0,1).v); + glMaterialfv(GL.FRONT, GL.DIFFUSE, vec4f(.6f,.6f,.1f,1).v); + glMaterialfv(GL.FRONT, GL.SPECULAR, vec4f(1,1,.75f,1).v); + glMaterialf(GL.FRONT, GL.SHININESS, 128.f); + + glutSolidTeapot(aslod.value*5); + + gl.rotatef(45, 0, 0, 1); + gl.totatef(90, 0, 1, 0); + gl.translatef(0, -4.5, 7.5); + gl.rotatef(-(aslod.angle * 180.0f) / 3.1415f, 0f, 1f, 0f); + + } +*/ + private static void ptrAnimate(float degree) + { + aslod.count += degree; + aslod.ripple = (float)(java.lang.Math.cos(aslod.count) / 80.0); + + } + + private static void keyPoll() { + Keyboard.read(); + for (int i = 0; i < Keyboard.getNumKeyboardEvents(); i++) { + Keyboard.next(); + if (!Keyboard.state) + continue; + switch(Keyboard.key) + { + case Keyboard.KEY_A: + aslod.angle += 0.1; + break; + case Keyboard.KEY_D: + aslod.angle -= 0.1; + break; + case Keyboard.KEY_W: + aslod.value += (aslod.value >= 0.15) ? 0.0 : 0.0025; + break; + case Keyboard.KEY_S: + aslod.value -= (aslod.value <= 0.005) ? 0.0 : 0.0025; + break; + case Keyboard.KEY_ESCAPE: + finished = true; + break; + } + } + } + +} + |
From: Elias N. <eli...@us...> - 2002-12-21 12:49:21
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl In directory sc8-pr-cvs1:/tmp/cvs-serv4701 Modified Files: Grass.java Log Message: Cleaned up Grass.java Index: Grass.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl/Grass.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl/Grass.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Grass.java 20 Dec 2002 20:47:41 -0000 1.3 +++ Grass.java 21 Dec 2002 12:49:17 -0000 1.4 @@ -1,4 +1,47 @@ -package org.lwjgl.test.opengl; import org.lwjgl.input.*; +/* + * Copyright (c) 2002 Lightweight Java Game Library Project + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * * Neither the name of 'Light Weight Java Game Library' nor the names of + * its contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/** + * $Id$ + * + * Simple java test program. + * + * @author elias_naur <eli...@us...> + * @version $Revision$ + */ + +package org.lwjgl.test.opengl; + +import org.lwjgl.input.*; import org.lwjgl.opengl.*; import org.lwjgl.*; @@ -7,12 +50,12 @@ import java.nio.*; import java.util.*; - class Aslod { - float angle; - float value; - float ripple; - float count; - } +class Aslod { + float angle; + float value; + float ripple; + float count; +} public class Grass { @@ -36,6 +79,7 @@ public static final GL gl = new GL(); public static final GLU glu = new GLU(gl); + static { try { gl.create(); @@ -77,7 +121,6 @@ public static void main(String[] args) { - ByteBuffer byte_buf = ByteBuffer.allocateDirect(4); byte_buf.order(ByteOrder.nativeOrder()); System.out.println("Vertex program supported: " + gl.NV_vertex_program); @@ -169,16 +212,12 @@ numFaces = 5; frndHeight = fFaceHeight + ((fFaceHeight / 1.5f) * (float)java.lang.Math.cos(java.lang.Math.abs(rand.nextInt()))); frndWidth = fFaceWidth + ((fFaceWidth / 4.0f) * (float)java.lang.Math.cos(java.lang.Math.abs(rand.nextInt()))); - fDecWidth = frndWidth / 5.0f; - fRotate = myrand() * 3.1415f; - fRigid = ((fRigid = myrand()) < 0.2f) ? 0.2f : fRigid; if (myrand() < 0.3) gl.begin(GL.LINE_STRIP); - else gl.begin(GL.QUAD_STRIP); @@ -187,14 +226,11 @@ for (cWidth = frndWidth; cWidth >=-frndWidth; cWidth-=(frndWidth * 2.0f)) { gl.color4f(fX, fRigid, fZ, (float)cFaces/(float)numFaces); - gl.vertex3f((float)(((cFaces-2)*0.1f)*java.lang.Math.cos(fRotate)+(cWidth)*java.lang.Math.sin(fRotate)), cFaces*frndHeight, -(float)(((cFaces-2)*0.1f)*java.lang.Math.sin(fRotate) + (cWidth)*java.lang.Math.cos(fRotate))); } - frndWidth -= fDecWidth; } - gl.end(); } @@ -205,7 +241,6 @@ fArea = 20.0f; mesh = gl.genLists(1); gl.newList(mesh, GL.COMPILE); - for (cI = -fArea/2; cI < fArea/2; cI+=0.25f) { for (cJ = -fArea/2; cJ < fArea/2; cJ+=0.25f) @@ -213,7 +248,6 @@ genGrass(0.5f, 0.1f, cI, cJ); } } - gl.endList(); } @@ -277,7 +311,6 @@ private static void ptrAnimate(float degree) { aslod.count += degree; - aslod.ripple = (float)(java.lang.Math.cos(aslod.count) / 80.0); } @@ -291,22 +324,15 @@ switch(Keyboard.key) { case Keyboard.KEY_A: - aslod.angle += 0.1; break; - case Keyboard.KEY_D: - aslod.angle -= 0.1; break; - case Keyboard.KEY_W: - aslod.value += (aslod.value >= 0.15) ? 0.0 : 0.0025; break; - case Keyboard.KEY_S: - aslod.value -= (aslod.value <= 0.005) ? 0.0 : 0.0025; break; case Keyboard.KEY_ESCAPE: |
From: Brian M. <ma...@us...> - 2002-12-21 12:42:05
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl In directory sc8-pr-cvs1:/tmp/cvs-serv1820/test/opengl Modified Files: Game.java Log Message: Lightweight actually spelled right! Index: Game.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl/Game.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/test/opengl/Game.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Game.java 19 Dec 2002 16:35:35 -0000 1.3 +++ Game.java 21 Dec 2002 12:37:20 -0000 1.4 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without |
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/vector In directory sc8-pr-cvs1:/tmp/cvs-serv1820/vector Modified Files: Matrix.java Matrix2f.java Matrix3f.java Matrix4f.java Vector.java Vector2f.java Vector3f.java Vector4f.java Log Message: Lightweight actually spelled right! Index: Matrix.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Matrix.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Matrix.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Matrix.java 28 Aug 2002 00:05:45 -0000 1.4 +++ Matrix.java 21 Dec 2002 12:37:20 -0000 1.5 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: Matrix2f.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Matrix2f.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Matrix2f.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- Matrix2f.java 16 Oct 2002 22:34:40 -0000 1.9 +++ Matrix2f.java 21 Dec 2002 12:37:20 -0000 1.10 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: Matrix3f.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Matrix3f.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Matrix3f.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- Matrix3f.java 28 Oct 2002 20:01:26 -0000 1.11 +++ Matrix3f.java 21 Dec 2002 12:37:20 -0000 1.12 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: Matrix4f.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Matrix4f.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Matrix4f.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- Matrix4f.java 28 Oct 2002 20:01:24 -0000 1.11 +++ Matrix4f.java 21 Dec 2002 12:37:20 -0000 1.12 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: Vector.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Vector.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Vector.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Vector.java 28 Aug 2002 00:05:45 -0000 1.3 +++ Vector.java 21 Dec 2002 12:37:20 -0000 1.4 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: Vector2f.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Vector2f.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Vector2f.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- Vector2f.java 20 Dec 2002 23:00:00 -0000 1.7 +++ Vector2f.java 21 Dec 2002 12:37:20 -0000 1.8 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: Vector3f.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Vector3f.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Vector3f.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- Vector3f.java 20 Dec 2002 23:00:00 -0000 1.8 +++ Vector3f.java 21 Dec 2002 12:37:20 -0000 1.9 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: Vector4f.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Vector4f.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/vector/Vector4f.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- Vector4f.java 20 Dec 2002 23:00:00 -0000 1.7 +++ Vector4f.java 21 Dec 2002 12:37:20 -0000 1.8 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without |
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv In directory sc8-pr-cvs1:/tmp/cvs-serv1820/opengl/nv Modified Files: NVCopyDepthToColor.java NVDepthClamp.java NVEvaluators.java NVFence.java NVFogDistance.java NVLightMaxExponent.java NVOcclusionQuery.java NVPackedDepthStencil.java NVPointSprite.java NVRegisterCombiners.java NVRegisterCombiners2.java NVTexgenReflection.java NVTextureEnvCombine4.java NVTextureRectangle.java NVTextureShader.java NVTextureShader2.java NVTextureShader3.java NVVertexArrayRange.java NVVertexArrayRange2.java NVVertexProgram.java Log Message: Lightweight actually spelled right! Index: NVCopyDepthToColor.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVCopyDepthToColor.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVCopyDepthToColor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVCopyDepthToColor.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVCopyDepthToColor.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVDepthClamp.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVDepthClamp.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVDepthClamp.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVDepthClamp.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVDepthClamp.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVEvaluators.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVEvaluators.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVEvaluators.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVEvaluators.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVEvaluators.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVFence.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVFence.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVFence.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVFence.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVFence.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVFogDistance.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVFogDistance.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVFogDistance.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVFogDistance.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVFogDistance.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVLightMaxExponent.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVLightMaxExponent.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVLightMaxExponent.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVLightMaxExponent.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVLightMaxExponent.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVOcclusionQuery.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVOcclusionQuery.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVOcclusionQuery.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVOcclusionQuery.java 16 Aug 2002 21:50:08 -0000 1.1 +++ NVOcclusionQuery.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVPackedDepthStencil.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVPackedDepthStencil.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVPackedDepthStencil.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVPackedDepthStencil.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVPackedDepthStencil.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVPointSprite.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVPointSprite.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVPointSprite.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVPointSprite.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVPointSprite.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVRegisterCombiners.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVRegisterCombiners.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVRegisterCombiners.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVRegisterCombiners.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVRegisterCombiners.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVRegisterCombiners2.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVRegisterCombiners2.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVRegisterCombiners2.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVRegisterCombiners2.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVRegisterCombiners2.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVTexgenReflection.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVTexgenReflection.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVTexgenReflection.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVTexgenReflection.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVTexgenReflection.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVTextureEnvCombine4.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVTextureEnvCombine4.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVTextureEnvCombine4.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVTextureEnvCombine4.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVTextureEnvCombine4.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVTextureRectangle.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVTextureRectangle.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVTextureRectangle.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVTextureRectangle.java 16 Aug 2002 21:50:08 -0000 1.1 +++ NVTextureRectangle.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVTextureShader.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVTextureShader.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVTextureShader.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVTextureShader.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVTextureShader.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVTextureShader2.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVTextureShader2.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVTextureShader2.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVTextureShader2.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVTextureShader2.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVTextureShader3.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVTextureShader3.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVTextureShader3.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVTextureShader3.java 16 Aug 2002 21:50:08 -0000 1.1 +++ NVTextureShader3.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVVertexArrayRange.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVVertexArrayRange.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVVertexArrayRange.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVVertexArrayRange.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVVertexArrayRange.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVVertexArrayRange2.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVVertexArrayRange2.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVVertexArrayRange2.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVVertexArrayRange2.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVVertexArrayRange2.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: NVVertexProgram.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVVertexProgram.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/nv/NVVertexProgram.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- NVVertexProgram.java 16 Aug 2002 21:50:07 -0000 1.1 +++ NVVertexProgram.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without |
From: Brian M. <ma...@us...> - 2002-12-21 12:42:04
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/sgix In directory sc8-pr-cvs1:/tmp/cvs-serv1820/opengl/sgix Modified Files: SGIXDepthTexture.java SGIXShadow.java Log Message: Lightweight actually spelled right! Index: SGIXDepthTexture.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/sgix/SGIXDepthTexture.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/sgix/SGIXDepthTexture.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- SGIXDepthTexture.java 16 Aug 2002 21:50:07 -0000 1.1 +++ SGIXDepthTexture.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: SGIXShadow.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/sgix/SGIXShadow.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/sgix/SGIXShadow.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- SGIXShadow.java 16 Aug 2002 21:50:07 -0000 1.1 +++ SGIXShadow.java 21 Dec 2002 12:37:20 -0000 1.2 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002 Light Weight Java Game Library Project + * Copyright (c) 2002 Lightweight Java Game Library Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without |