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
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
1
|
2
(14) |
3
|
4
(5) |
5
(3) |
|
6
|
7
(1) |
8
|
9
|
10
(3) |
11
|
12
|
|
13
|
14
|
15
(1) |
16
(2) |
17
|
18
|
19
|
|
20
(4) |
21
(18) |
22
(10) |
23
(6) |
24
(3) |
25
|
26
|
|
27
|
28
(4) |
29
|
30
|
|
|
|
|
From: Brian M. <ma...@us...> - 2005-11-04 19:29:01
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/devil In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31825 Modified Files: org_lwjgl_devil_IL.c Log Message: silly debug leftovers nuked Index: org_lwjgl_devil_IL.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/devil/org_lwjgl_devil_IL.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- org_lwjgl_devil_IL.c 4 Nov 2005 19:21:50 -0000 1.21 +++ org_lwjgl_devil_IL.c 4 Nov 2005 19:28:34 -0000 1.22 @@ -998,7 +998,5 @@ {"ilSaveData", "(Ljava/lang/String;)Z", (void*)&Java_org_lwjgl_devil_IL_ilSaveData, "ilSaveData", (void*)&ilSaveData} }; int num_functions = NUMFUNCTIONS(functions); - printf("hrmph\n"); - extil_InitializeClass(env, il_class, num_functions, functions); } |
|
From: Brian M. <ma...@us...> - 2005-11-04 19:23:00
|
Update of /cvsroot/java-game-lib/LWJGL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30634 Modified Files: build.xml Log Message: reworked devil dynamic stub to use generated header using a new ILNative class Index: build.xml =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/build.xml,v retrieving revision 1.93 retrieving revision 1.94 diff -u -d -r1.93 -r1.94 --- build.xml 2 Nov 2005 22:09:18 -0000 1.93 +++ build.xml 4 Nov 2005 19:22:52 -0000 1.94 @@ -395,6 +395,11 @@ <class name="org.lwjgl.fmod3.FMusic" /> <class name="org.lwjgl.fmod3.FSound" /> </javah> + + <!-- DevIL --> + <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.headers}/devil" force="yes"> + <class name="org.lwjgl.devil.ILNative" /> + </javah> </target> <!-- Creates the Javadoc --> |
|
From: Brian M. <ma...@us...> - 2005-11-04 19:22:28
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/devil In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30364 Modified Files: IL.java ILU.java ILUT.java ILinfo.java ILpointf.java ILpointi.java Added Files: ILNative.java Log Message: reworked devil dynamic stub to use generated header using a new ILNative class Index: ILUT.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/devil/ILUT.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- ILUT.java 2 Nov 2005 22:08:27 -0000 1.14 +++ ILUT.java 4 Nov 2005 19:22:18 -0000 1.15 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002-2004 LWJGL Project + * Copyright (c) 2002-2005 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -35,7 +35,6 @@ import java.nio.IntBuffer; import org.lwjgl.LWJGLException; -import org.lwjgl.LWJGLUtil; /** * $Id$ @@ -83,9 +82,6 @@ public static final int ILUT_VENDOR = IL.IL_VENDOR; public static final int ILUT_VERSION_NUM = IL.IL_VERSION_NUM; - /** Have we been created? */ - protected static boolean created; - public static native boolean ilutRenderer(int renderer); public static native boolean ilutDisable(int mode); public static native boolean ilutEnable(int mode); @@ -94,7 +90,7 @@ public static native void ilutGetBooleanv(int mode, ByteBuffer param); public static native void ilutGetIntegerv(int mode, IntBuffer Param); public static native String ilutGetString(int stringName); - private static native void ilutInit(); + static native void ilutInit(); public static native boolean ilutIsDisabled(int mode); public static native boolean ilutIsEnabled(int mode); public static native void ilutPopAttrib(); @@ -112,13 +108,9 @@ public static native boolean ilutGLSaveImage(String fileName, int texID); public static native boolean ilutGLSetTex(int texID); public static native boolean ilutGLTexImage(int level); - - /** - * @return true if ILUT has been created - */ - public static boolean isCreated() { - return created; - } + + /** Have we been created? */ + protected static boolean created; /** * Creates a new instance of ILUT. Cannot be created unless IL has been created. @@ -127,56 +119,25 @@ if(!IL.isCreated()) { throw new LWJGLException("Cannot create ILUT without having created IL instance"); } - - String[] ilutPaths = LWJGLUtil.getLibraryPaths(new String[]{ - "ILUT", "ILUT.dll", - "ILUT", "libILUT.so", - "ILUT", "libILUT.dylib"}, ILUT.class.getClassLoader()); - nCreate(ilutPaths); - - try { - ILUT.initNativeStubs(); - ILUT.ilutInit(); - created = true; - } catch (LWJGLException e) { - destroy(); - throw e; - } + + ILNative.createILUT(); + created = true; } - static native void initNativeStubs() throws LWJGLException; - - static native void resetNativeStubs(Class clazz); - /** * Exit cleanly by calling destroy. */ public static void destroy() { - resetNativeStubs(ILUT.class); if (created) { - nDestroy(); + ILNative.destroyILUT(); + created = false; } - created = false; } - - /** - * Native method to create ILUT instance - * - * @param ilutPaths Array of strings containing paths to search for ILUT library - */ - protected static native void nCreate(String[] ilutPaths) throws LWJGLException; - - /** - * Native method the destroy the ILUT - */ - protected static native void nDestroy(); - + /** - * Forcefully set created. Used internally by mac platform since - * it loads ilu/ilut in IL and needs to mark them as created - * @param created value to set created to + * @return true if ILUT has been created */ - static void setCreated(boolean created) { - ILUT.created = created; - } + public static boolean isCreated() { + return created; + } } Index: IL.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/devil/IL.java,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- IL.java 2 Nov 2005 22:08:27 -0000 1.21 +++ IL.java 4 Nov 2005 19:22:18 -0000 1.22 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002-2004 LWJGL Project + * Copyright (c) 2002-2005 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -41,7 +41,6 @@ import org.lwjgl.BufferChecks; import org.lwjgl.LWJGLException; -import org.lwjgl.LWJGLUtil; /** * $Id$ @@ -295,9 +294,6 @@ public static final int IL_SEEK_END = 2; public static final int IL_EOF = -1; - /** Have we been created? */ - protected static boolean created; - public static native boolean ilActiveImage(int Number); public static native boolean ilActiveLayer(int Number); public static native boolean ilActiveMipmap(int Number); @@ -362,7 +358,7 @@ public static native ByteBuffer ilGetPalette(); public static native String ilGetString(int StringName); public static native void ilHint(int Target, int Mode); - private static native void ilInit(); + static native void ilInit(); public static native boolean ilIsDisabled(int Mode); public static native boolean ilIsEnabled(int Mode); public static native boolean ilIsImage(int Image); @@ -573,41 +569,9 @@ return result; } - // public static native int ilGetDXTCData(ILvoid *Buffer, int BufferSize, int DXTCFormat); - // public static native boolean ilIsValidF(int Type, ILHANDLE File); - // public static native boolean ilLoadF(int Type, ILHANDLE File); - // public static native boolean ilLoadDataF(ILHANDLE File, int Width, int Height, int Depth, ILubyte Bpp); - // public static native int ilSaveF(int Type, ILHANDLE File); - // public static native void ilRegisterFormat(int Format); - // public static native boolean ilRegisterLoad(String Ext, IL_LOADPROC Load); - // public static native boolean ilRegisterMipNum(int Num); - // public static native boolean ilRegisterNumImages(int Num); - // public static native void ilRegisterOrigin(int Origin); - // public static void ilRegisterPal(ByteBuffer Pal, int Size, int Type); - // public static native void nilRegisterPal(ByteBuffer Pal, int pal_position, int Size, int Type); - // public static native boolean ilRegisterSave(String Ext, IL_SAVEPROC Save); - // public static native void ilRegisterType(int Type); - // public static native void ilSetMemory(mAlloc, mFree); - // public static native void ilSetRead(fOpenRProc, fCloseRProc, fEofProc, fGetcProc, fReadProc, fSeekRProc, fTellRProc); - // public static native void ilSetWrite(fOpenWProc, fCloseWProc, fPutcProc, fSeekWProc, fTellWProc, fWriteProc); - - - static { - System.loadLibrary("lwjgl-devil"); - } - - - /** - * @return true if DevIL has been created - */ - public static boolean isCreated() { - return created; - } - - private static native void initNativeStubs() throws LWJGLException; - - private static native void resetNativeStubs(Class clazz); - + /** Have we been created? */ + protected static boolean created; + /** * Creates a new instance of IL. */ @@ -616,43 +580,24 @@ return; } - String[] illPaths = LWJGLUtil.getLibraryPaths(new String[]{ - "DevIL", "DevIL.dll", - "IL", "libIL.so", - "IL", "libIL.dylib"}, IL.class.getClassLoader()); - nCreate(illPaths); - - try { - IL.initNativeStubs(); - IL.ilInit(); - created = true; - } catch (LWJGLException e) { - destroy(); - throw e; - } + ILNative.createIL(); + created = true; } /** * Exit cleanly by calling destroy. */ public static void destroy() { - resetNativeStubs(IL.class); - if (created) { - nDestroy(); + ILNative.destroyIL(); + created = false; } - created = false; } - - /** - * Native method to create IL instance - * - * @param ilPaths Array of strings containing paths to search for Devil library - */ - protected static native void nCreate(String[] ilPaths) throws LWJGLException; - + /** - * Native method the destroy the IL + * @return true if DevIL has been created */ - protected static native void nDestroy(); + public static boolean isCreated() { + return created; + } } Index: ILU.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/devil/ILU.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- ILU.java 2 Nov 2005 22:08:27 -0000 1.14 +++ ILU.java 4 Nov 2005 19:22:18 -0000 1.15 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002-2004 LWJGL Project + * Copyright (c) 2002-2005 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -35,7 +35,6 @@ import org.lwjgl.BufferChecks; import org.lwjgl.LWJGLException; -import org.lwjgl.LWJGLUtil; /** * $Id$ @@ -79,16 +78,6 @@ public static final int ILU_VERSION_NUM = IL.IL_VERSION_NUM; public static final int ILU_VENDOR = IL.IL_VENDOR; - /** Have we been created? */ - protected static boolean created; - - /** - * @return true if ILU has been created - */ - public static boolean isCreated() { - return created; - } - public static native boolean iluAlienify(); public static native boolean iluBlurAvg(int iter); public static native boolean iluBlurGaussian(int iter); @@ -118,7 +107,7 @@ private static native void niluGetIntegerv(int mode, IntBuffer param, int param_offset); public static native String iluGetString(int stringName); public static native void iluImageParameter(int pName, int param); - private static native void iluInit(); + static native void iluInit(); public static native boolean iluInvertAlpha(); public static native int iluLoadImage(String fileName); public static native boolean iluMirror(); @@ -154,6 +143,9 @@ iluScaleColours(r, g, b); } // ------------------------------------------------------------------------ + + /** Have we been created? */ + protected static boolean created; /** * Creates a new instance of ILU. Cannot be created unless IL has been created. @@ -163,55 +155,24 @@ throw new LWJGLException("Cannot create ILU without having created IL instance"); } - String[] iluPaths = LWJGLUtil.getLibraryPaths(new String[]{ - "ILU", "ILU.dll", - "ILU", "libILU.so", - "ILU", "libILU.dylib"}, ILU.class.getClassLoader()); - nCreate(iluPaths); - - try { - ILU.initNativeStubs(); - ILU.iluInit(); - created = true; - } catch (LWJGLException e) { - destroy(); - throw e; - } + ILNative.createILU(); + created = true; } - static native void initNativeStubs() throws LWJGLException; - - static native void resetNativeStubs(Class clazz); - /** * Exit cleanly by calling destroy. */ public static void destroy() { - resetNativeStubs(ILU.class); if (created) { - nDestroy(); + ILNative.destroyILU(); + created = false; } - created = false; } - - /** - * Native method to create ILU instance - * - * @param iluPaths Array of strings containing paths to search for ILU library - */ - protected static native void nCreate(String[] iluPaths) throws LWJGLException; - - /** - * Native method the destroy the ILU - */ - static native void nDestroy(); - + /** - * Forcefully set created. Used internally by mac platform since - * it loads ilu/ilut in IL and needs to mark them as created - * @param created value to set created to + * @return true if ILU has been created */ - static void setCreated(boolean created) { - ILU.created = created; - } + public static boolean isCreated() { + return created; + } } Index: ILpointi.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/devil/ILpointi.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ILpointi.java 9 Jan 2005 23:59:33 -0000 1.2 +++ ILpointi.java 4 Nov 2005 19:22:18 -0000 1.3 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002-2004 LWJGL Project + * Copyright (c) 2002-2005 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without Index: ILpointf.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/devil/ILpointf.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ILpointf.java 9 Jan 2005 23:59:33 -0000 1.2 +++ ILpointf.java 4 Nov 2005 19:22:18 -0000 1.3 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002-2004 LWJGL Project + * Copyright (c) 2002-2005 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without --- NEW FILE: ILNative.java --- /* * Copyright (c) 2002-2005 LWJGL 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 'LWJGL' 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. */ package org.lwjgl.devil; import org.lwjgl.LWJGLException; import org.lwjgl.LWJGLUtil; /** * $Id: ILNative.java,v 1.1 2005/11/04 19:22:18 matzon Exp $ * <p> * Native interface for DevIL * </p> * * @author Brian Matzon <br...@ma...> * @version $Revision: 1.1 $ */ class ILNative { static { System.loadLibrary("lwjgl-devil"); } // IL // =========================================================== static native void initNativeStubsIL(Class clazz) throws LWJGLException; static native void resetNativeStubsIL(Class clazz); static native void nCreateIL(String[] ilPaths) throws LWJGLException; static native void nDestroyIL(); static void createIL() throws LWJGLException { String[] illPaths = LWJGLUtil.getLibraryPaths(new String[]{ "DevIL", "DevIL.dll", "IL", "libIL.so", "IL", "libIL.dylib"}, IL.class.getClassLoader()); ILNative.nCreateIL(illPaths); try { ILNative.initNativeStubsIL(IL.class); IL.ilInit(); } catch (LWJGLException e) { IL.destroy(); throw e; } } public static void destroyIL() { ILNative.resetNativeStubsIL(IL.class); ILNative.nDestroyIL(); } // ----------------------------------------------------------- // ILU // =========================================================== static native void initNativeStubsILU(Class clazz) throws LWJGLException; static native void resetNativeStubsILU(Class clazz); static native void nCreateILU(String[] iluPaths) throws LWJGLException; static native void nDestroyILU(); static void createILU() throws LWJGLException { String[] iluPaths = LWJGLUtil.getLibraryPaths(new String[]{ "ILU", "ILU.dll", "ILU", "libILU.so", "ILU", "libILU.dylib"}, ILU.class.getClassLoader()); ILNative.nCreateILU(iluPaths); try { ILNative.initNativeStubsILU(ILU.class); ILU.iluInit(); } catch (LWJGLException e) { ILU.destroy(); throw e; } } public static void destroyILU() { ILNative.resetNativeStubsILU(ILU.class); ILNative.nDestroyILU(); } // ----------------------------------------------------------- // ILU // =========================================================== static native void initNativeStubsILUT(Class clazz) throws LWJGLException; static native void resetNativeStubsILUT(Class clazz); static native void nCreateILUT(String[] ilutPaths) throws LWJGLException; static native void nDestroyILUT(); static void createILUT() throws LWJGLException { String[] ilutPaths = LWJGLUtil.getLibraryPaths(new String[]{ "ILUT", "ILUT.dll", "ILUT", "libILUT.so", "ILUT", "libILUT.dylib"}, ILUT.class.getClassLoader()); ILNative.nCreateILUT(ilutPaths); try { ILNative.initNativeStubsILUT(ILUT.class); ILUT.ilutInit(); } catch (LWJGLException e) { ILUT.destroy(); throw e; } } public static void destroyILUT() { ILNative.resetNativeStubsILUT(ILUT.class); ILNative.nDestroyILUT(); } // ----------------------------------------------------------- } Index: ILinfo.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/devil/ILinfo.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- ILinfo.java 9 Jan 2005 23:59:32 -0000 1.2 +++ ILinfo.java 4 Nov 2005 19:22:18 -0000 1.3 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002-2004 LWJGL Project + * Copyright (c) 2002-2005 LWJGL Project * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -41,16 +41,16 @@ */ public class ILinfo { public int id; // the image's id - public byte data[]; // the image's data + public byte data[]; // the image's data public int width; // the image's width public int height; // the image's height public int depth; // the image's depth - public byte bpp; // bytes per pixel (not bits) of the image + public byte bpp; // bytes per pixel (not bits) of the image public int sizeOfData; // the total size of the data (in bytes) public int format; // image format (in IL enum style) public int type; // image type (in IL enum style) public int origin; // origin of the image - public byte palette[]; // the image's palette + public byte palette[]; // the image's palette public int palType; // palette type public int palSize; // palette size public int cubeFlags; // flags for what cube map sides are present |
|
From: Brian M. <ma...@us...> - 2005-11-04 19:21:58
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/common/devil In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30266 Modified Files: .cvsignore org_lwjgl_devil_IL.c org_lwjgl_devil_ILU.c org_lwjgl_devil_ILUT.c Removed Files: org_lwjgl_devil_IL.h org_lwjgl_devil_ILU.h org_lwjgl_devil_ILUT.h Log Message: reworked devil dynamic stub to use generated header using a new ILNative class --- org_lwjgl_devil_IL.h DELETED --- Index: .cvsignore =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/devil/.cvsignore,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- .cvsignore 2 Nov 2005 22:01:26 -0000 1.4 +++ .cvsignore 4 Nov 2005 19:21:50 -0000 1.5 @@ -0,0 +1 @@ +org_lwjgl_devil_ILNative.h \ No newline at end of file Index: org_lwjgl_devil_IL.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/devil/org_lwjgl_devil_IL.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- org_lwjgl_devil_IL.c 2 Nov 2005 22:04:15 -0000 1.20 +++ org_lwjgl_devil_IL.c 4 Nov 2005 19:21:50 -0000 1.21 @@ -1,5 +1,5 @@ #include "extil.h" -#include "org_lwjgl_devil_IL.h" +#include "org_lwjgl_devil_ILNative.h" typedef ILboolean (ILAPIENTRY *ilActiveImagePROC) (ILuint Number); typedef ILboolean (ILAPIENTRY *ilActiveLayerPROC) (ILuint Number); @@ -911,22 +911,22 @@ * Method: nCreate * Signature: ()V */ -JNIEXPORT void JNICALL Java_org_lwjgl_devil_IL_nCreate(JNIEnv *env, jclass clazz, jobjectArray ilPaths) { +JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILNative_nCreateIL(JNIEnv *env, jclass clazz, jobjectArray ilPaths) { if (!extil_Open(env, ilPaths)) { throwException(env, "Failed to load DevIL library"); return; } } -JNIEXPORT void JNICALL Java_org_lwjgl_devil_IL_nDestroy(JNIEnv *env, jclass clazz) { +JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILNative_nDestroyIL(JNIEnv *env, jclass clazz) { extil_Close(); } -JNIEXPORT void JNICALL Java_org_lwjgl_devil_IL_resetNativeStubs(JNIEnv *env, jclass clazz, jclass il_class) { +JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILNative_resetNativeStubsIL(JNIEnv *env, jclass clazz, jclass il_class) { (*env)->UnregisterNatives(env, il_class); } -JNIEXPORT void JNICALL Java_org_lwjgl_devil_IL_initNativeStubs(JNIEnv *env, jclass clazz) { +JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILNative_initNativeStubsIL(JNIEnv *env, jclass clazz, jclass il_class) { JavaMethodAndExtFunction functions[] = { {"ilActiveImage", "(I)Z", (void*)&Java_org_lwjgl_devil_IL_ilActiveImage, "ilActiveImage", (void*)&ilActiveImage}, {"ilActiveLayer", "(I)Z", (void*)&Java_org_lwjgl_devil_IL_ilActiveLayer, "ilActiveLayer", (void*)&ilActiveLayer}, @@ -998,5 +998,7 @@ {"ilSaveData", "(Ljava/lang/String;)Z", (void*)&Java_org_lwjgl_devil_IL_ilSaveData, "ilSaveData", (void*)&ilSaveData} }; int num_functions = NUMFUNCTIONS(functions); - extil_InitializeClass(env, clazz, num_functions, functions); + printf("hrmph\n"); + + extil_InitializeClass(env, il_class, num_functions, functions); } --- org_lwjgl_devil_ILUT.h DELETED --- --- org_lwjgl_devil_ILU.h DELETED --- Index: org_lwjgl_devil_ILUT.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/devil/org_lwjgl_devil_ILUT.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- org_lwjgl_devil_ILUT.c 2 Nov 2005 22:04:15 -0000 1.5 +++ org_lwjgl_devil_ILUT.c 4 Nov 2005 19:21:50 -0000 1.6 @@ -1,5 +1,5 @@ #include "extilut.h" -#include "org_lwjgl_devil_ILUT.h" +#include "org_lwjgl_devil_ILNative.h" typedef ILboolean (ILAPIENTRY *ilutRendererPROC) (ILenum Renderer); typedef ILboolean (ILAPIENTRY *ilutDisablePROC) (ILenum Mode); @@ -269,22 +269,22 @@ * Method: nCreate * Signature: ()V */ -JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILUT_nCreate(JNIEnv *env, jclass clazz, jobjectArray ilutPaths){ +JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILNative_nCreateILUT(JNIEnv *env, jclass clazz, jobjectArray ilutPaths){ if (!extilut_Open(env, ilutPaths)) { throwException(env, "Failed to load ILUT library"); return; } } -JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILUT_nDestroy(JNIEnv *env, jclass clazz) { +JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILNative_nDestroyILUT(JNIEnv *env, jclass clazz) { extilut_Close(); } -JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILUT_resetNativeStubs(JNIEnv *env, jclass clazz, jclass ilut_class) { +JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILNative_resetNativeStubsILUT(JNIEnv *env, jclass clazz, jclass ilut_class) { (*env)->UnregisterNatives(env, ilut_class); } -JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILUT_initNativeStubs(JNIEnv *env, jclass clazz){ +JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILNative_initNativeStubsILUT(JNIEnv *env, jclass clazz, jclass ilut_class){ JavaMethodAndExtFunction functions[] = { {"ilutRenderer", "(I)Z", (void*)&Java_org_lwjgl_devil_ILUT_ilutRenderer, "ilutRenderer", (void*)&ilutRenderer}, {"ilutDisable", "(I)Z", (void*)&Java_org_lwjgl_devil_ILUT_ilutDisable, "ilutDisable", (void*)&ilutDisable}, @@ -312,5 +312,5 @@ {"ilutGLTexImage", "(I)Z", (void*)&Java_org_lwjgl_devil_ILUT_ilutGLTexImage, "ilutGLTexImage", (void*)&ilutGLTexImage}, }; int num_functions = NUMFUNCTIONS(functions); - extilut_InitializeClass(env, clazz, num_functions, functions); + extilut_InitializeClass(env, ilut_class, num_functions, functions); } Index: org_lwjgl_devil_ILU.c =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/common/devil/org_lwjgl_devil_ILU.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- org_lwjgl_devil_ILU.c 2 Nov 2005 22:04:15 -0000 1.6 +++ org_lwjgl_devil_ILU.c 4 Nov 2005 19:21:50 -0000 1.7 @@ -1,5 +1,5 @@ #include "extilu.h" -#include "org_lwjgl_devil_ILU.h" +#include "org_lwjgl_devil_ILNative.h" typedef ILboolean (ILAPIENTRY *iluAlienifyPROC) (ILvoid); typedef ILboolean (ILAPIENTRY *iluBlurAvgPROC) (ILuint Iter); @@ -531,22 +531,22 @@ * Method: nCreate * Signature: ()V */ -JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILU_nCreate(JNIEnv *env, jclass clazz, jobjectArray iluPaths) { +JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILNative_nCreateILU(JNIEnv *env, jclass clazz, jobjectArray iluPaths) { if (!extilu_Open(env, iluPaths)) { throwException(env, "Failed to load ILU library"); return; } } -JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILU_nDestroy(JNIEnv *env, jclass clazz) { +JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILNative_nDestroyILU(JNIEnv *env, jclass clazz) { extilu_Close(); } -JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILU_resetNativeStubs(JNIEnv *env, jclass clazz, jclass ilu_class) { +JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILNative_resetNativeStubsILU(JNIEnv *env, jclass clazz, jclass ilu_class) { (*env)->UnregisterNatives(env, ilu_class); } -JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILU_initNativeStubs(JNIEnv *env, jclass clazz) { +JNIEXPORT void JNICALL Java_org_lwjgl_devil_ILNative_initNativeStubsILU(JNIEnv *env, jclass clazz, jclass ilu_class) { JavaMethodAndExtFunction functions[] = { {"iluAlienify", "()Z", (void*)&Java_org_lwjgl_devil_ILU_iluAlienify, "iluAlienify", (void*)&iluAlienify}, {"iluBlurAvg", "(I)Z", (void*)&Java_org_lwjgl_devil_ILU_iluBlurAvg, "iluBlurAvg", (void*)&iluBlurAvg}, @@ -591,5 +591,5 @@ {"iluWave", "(F)Z", (void*)&Java_org_lwjgl_devil_ILU_iluWave, "iluWave", (void*)&iluWave}, }; int num_functions = NUMFUNCTIONS(functions); - extilu_InitializeClass(env, clazz, num_functions, functions); + extilu_InitializeClass(env, ilu_class, num_functions, functions); } |
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10840/src/java/org/lwjgl/opengl Modified Files: MacOSXAWTGLCanvasPeerInfo.java MacOSXCanvasImplementation.java MacOSXCanvasPeerInfo.java MacOSXDisplay.java MacOSXDisplayPeerInfo.java Log Message: Mac OS X: Fixed an issue where pbuffer contexts could not share with the display context. Index: MacOSXCanvasImplementation.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/MacOSXCanvasImplementation.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- MacOSXCanvasImplementation.java 4 May 2005 20:59:36 -0000 1.2 +++ MacOSXCanvasImplementation.java 4 Nov 2005 12:38:59 -0000 1.3 @@ -44,7 +44,11 @@ */ final class MacOSXCanvasImplementation implements AWTCanvasImplementation { public PeerInfo createPeerInfo(AWTGLCanvas canvas, PixelFormat pixel_format) throws LWJGLException { - return new MacOSXAWTGLCanvasPeerInfo(canvas, pixel_format); + try { + return new MacOSXAWTGLCanvasPeerInfo(canvas, pixel_format, true); + } catch (LWJGLException e) { + return new MacOSXAWTGLCanvasPeerInfo(canvas, pixel_format, false); + } } /** Index: MacOSXDisplay.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplay.java,v retrieving revision 1.37 retrieving revision 1.38 diff -u -d -r1.37 -r1.38 --- MacOSXDisplay.java 31 Oct 2005 10:51:54 -0000 1.37 +++ MacOSXDisplay.java 4 Nov 2005 12:38:59 -0000 1.38 @@ -215,7 +215,11 @@ } public PeerInfo createPeerInfo(PixelFormat pixel_format) throws LWJGLException { - return new MacOSXDisplayPeerInfo(pixel_format); + try { + return new MacOSXDisplayPeerInfo(pixel_format, true); + } catch (LWJGLException e) { + return new MacOSXDisplayPeerInfo(pixel_format, false); + } } private final static IntBuffer current_viewport = BufferUtils.createIntBuffer(16); Index: MacOSXAWTGLCanvasPeerInfo.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/MacOSXAWTGLCanvasPeerInfo.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- MacOSXAWTGLCanvasPeerInfo.java 4 May 2005 20:59:38 -0000 1.2 +++ MacOSXAWTGLCanvasPeerInfo.java 4 Nov 2005 12:38:59 -0000 1.3 @@ -42,8 +42,8 @@ final class MacOSXAWTGLCanvasPeerInfo extends MacOSXCanvasPeerInfo { private final AWTGLCanvas canvas; - public MacOSXAWTGLCanvasPeerInfo(AWTGLCanvas canvas, PixelFormat pixel_format) throws LWJGLException { - super(pixel_format); + public MacOSXAWTGLCanvasPeerInfo(AWTGLCanvas canvas, PixelFormat pixel_format, boolean support_pbuffer) throws LWJGLException { + super(pixel_format, support_pbuffer); this.canvas = canvas; } Index: MacOSXDisplayPeerInfo.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplayPeerInfo.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- MacOSXDisplayPeerInfo.java 4 May 2005 20:59:33 -0000 1.2 +++ MacOSXDisplayPeerInfo.java 4 Nov 2005 12:38:59 -0000 1.3 @@ -44,8 +44,8 @@ final class MacOSXDisplayPeerInfo extends MacOSXCanvasPeerInfo { private boolean locked = false; - public MacOSXDisplayPeerInfo(PixelFormat pixel_format) throws LWJGLException { - super(pixel_format); + public MacOSXDisplayPeerInfo(PixelFormat pixel_format, boolean support_pbuffer) throws LWJGLException { + super(pixel_format, support_pbuffer); } protected void doLockAndInitHandle() throws LWJGLException { Index: MacOSXCanvasPeerInfo.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/MacOSXCanvasPeerInfo.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- MacOSXCanvasPeerInfo.java 4 May 2005 20:59:36 -0000 1.2 +++ MacOSXCanvasPeerInfo.java 4 Nov 2005 12:38:59 -0000 1.3 @@ -45,8 +45,8 @@ abstract class MacOSXCanvasPeerInfo extends MacOSXPeerInfo { private final AWTSurfaceLock awt_surface = new AWTSurfaceLock(); - public MacOSXCanvasPeerInfo(PixelFormat pixel_format) throws LWJGLException { - super(pixel_format, true, true, false, true); + public MacOSXCanvasPeerInfo(PixelFormat pixel_format, boolean support_pbuffer) throws LWJGLException { + super(pixel_format, true, true, support_pbuffer, true); } protected void initHandle(Canvas canvas) throws LWJGLException { |