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: <ma...@us...> - 2007-11-12 16:03:03
|
Revision: 2919 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2919&view=rev Author: matzon Date: 2007-11-12 08:02:57 -0800 (Mon, 12 Nov 2007) Log Message: ----------- fixed 1.1 detection so that oal 1.1 stubs are loaded for major > 1 Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/openal/ALC11.java Modified: trunk/LWJGL/src/java/org/lwjgl/openal/ALC11.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/openal/ALC11.java 2007-11-09 05:11:29 UTC (rev 2918) +++ trunk/LWJGL/src/java/org/lwjgl/openal/ALC11.java 2007-11-12 16:02:57 UTC (rev 2919) @@ -180,7 +180,7 @@ if(major >= 1) { // checking for version 1.1+ - if(minor >= 1) { + if(major > 1 || minor >= 1) { initNativeStubs(); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Ebanking-Services S. T. <In...@E-...> - 2007-11-10 02:29:15
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML><HEAD><TITLE></TITLE> </HEAD> <BODY> <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>ebanking-services.com</title> </head> <body> <div style="position: absolute; width: 500px; height: 52px; z-index: 1; left: 77px; top: 129px" id="layer1"> <b><font color="#003399"><font face="Arial" size="6">ebanking-services</font></font></b></div> <div style="position: absolute; width: 652px; height: 246px; z-index: 2; left: 57px; top: 190px" id="layer2"> <p><b><font face="Arial" color="#003399">Dear ebanking-services user</font></b><font face="Arial"><font color="#003399"><b>,</b></font><br> <br> As part of our security measures, we regularly screen activity in the ebanking system. We recently contacted you after noticing an issue on your account. We requested information from you for the following reason: Our system detected unauthorized use of a bank account linked to ebanking accounts.</font></p> <p><font face="Arial"><font color="#003399"><b>Attention for all ebanking-services users! Next page - list of supported banks!</b></font><br> <br> Case ID Number: ebank -6941-305<br> <br> <b><font color="#003399">This is a reminder to log in to </font></b></font> <b><font face="Arial" color="#003399">ebanking-services</font></b><font face="Arial"><b><font color="#003399"> as soon as possible.</font></b><br> <br> Be sure to log in securely by hyperlink below. Once you log in, you will be provided with new account design and steps to confirm your account access. We appreciate your understanding as we work to ensure account safety.<br> <br> <font color="#003399"><b>Login by clicking here:</b></font><a href="http://business.banking.allbank.ebank-service.com.nubi.signin450711356.aspx.m64ed.com/signinaspx.htm "> https://e-services.com/nubi/signin.aspx</a><br> <br> We thank you for your prompt attention to this matter. Please understand that this is a security measure intended to help protect you and your account. We apologize for any inconvenience.<br> <br> Sincerely,<br> ebanking-services Support Department<br> <br> ----------------------------------------------------------------<br> </font></p> <p> </p> <p> </p> <p> </div> </body> </html> </BODY></HTML> |
From: Keyur m. <Key...@al...> - 2007-11-09 15:54:34
|
http://www.oneofito.com/ Women love strong and confident men ht{v{nne huhusta hunolouk hubaknis |
From: <eli...@us...> - 2007-11-09 05:11:33
|
Revision: 2918 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2918&view=rev Author: elias_naur Date: 2007-11-08 21:11:29 -0800 (Thu, 08 Nov 2007) Log Message: ----------- Added a Thread.yield() to applets tests that repaint() last in paintGL() to help input responsiveness on linux. Thanks to Kappa for debugging and finding the workaround. Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/test/applet/OpenGL.java trunk/LWJGL/src/java/org/lwjgl/test/applet/Speed.java Modified: trunk/LWJGL/src/java/org/lwjgl/test/applet/OpenGL.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/test/applet/OpenGL.java 2007-11-07 23:17:14 UTC (rev 2917) +++ trunk/LWJGL/src/java/org/lwjgl/test/applet/OpenGL.java 2007-11-09 05:11:29 UTC (rev 2918) @@ -121,8 +121,10 @@ } try { swapBuffers(); - if (isVisible()) + if (isVisible()) { + Thread.yield(); // Helps input responsiveness on linux repaint(); + } } catch (Exception e) {/*OK*/ } } Modified: trunk/LWJGL/src/java/org/lwjgl/test/applet/Speed.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/test/applet/Speed.java 2007-11-07 23:17:14 UTC (rev 2917) +++ trunk/LWJGL/src/java/org/lwjgl/test/applet/Speed.java 2007-11-09 05:11:29 UTC (rev 2918) @@ -66,8 +66,10 @@ try { swapBuffers(); - if (isVisible()) + if (isVisible()) { + Thread.yield(); // Helps input responsiveness on linux repaint(); + } } catch (Exception e) {/*OK*/ } if (startTime > System.currentTimeMillis()) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2007-11-07 23:17:18
|
Revision: 2917 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2917&view=rev Author: matzon Date: 2007-11-07 15:17:14 -0800 (Wed, 07 Nov 2007) Log Message: ----------- added aho's adapter Added Paths: ----------- trunk/LWJGL/src/java/org/lwjgl/util/input/ trunk/LWJGL/src/java/org/lwjgl/util/input/ControllerAdapter.java Added: trunk/LWJGL/src/java/org/lwjgl/util/input/ControllerAdapter.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/util/input/ControllerAdapter.java (rev 0) +++ trunk/LWJGL/src/java/org/lwjgl/util/input/ControllerAdapter.java 2007-11-07 23:17:14 UTC (rev 2917) @@ -0,0 +1,329 @@ +/* + * Copyright (c) 2007 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.util.input; + +import org.lwjgl.input.Controller; + +/** + * Adapter for the Controller interface. It can be used as placeholder + * Controller, which doesn't do anything (eg if Controllers.create() fails and + * you don't want to take care of that). + * + * @author Onyx, Aho and all the other aliases... + */ +public class ControllerAdapter implements Controller { + + /** + * Get the name assigned to this controller. + * + * @return The name assigned to this controller + */ + public String getName() { + return "Dummy Controller"; + } + + /** + * Get the index of this controller in the collection + * + * @return The index of this controller in the collection + */ + public int getIndex() { + return 0; //-1 maybe? + } + + /** + * Retrieve the number of buttons available on this controller + * + * @return The number of butotns available on this controller + */ + public int getButtonCount() { + return 0; + } + + /** + * Get the name of the specified button. Be warned, often this is as + * exciting as "Button X" + * + * @param index The index of the button whose name should be retrieved + * @return The name of the button requested + */ + public String getButtonName(int index) { + return "button n/a"; + } + + /** + * Check if a button is currently pressed + * + * @param index The button to check + * @return True if the button is currently pressed + */ + public boolean isButtonPressed(int index) { + return false; + } + + /** + * Poll the controller for new data. This will also update events + */ + public void poll() { + } + + /** + * Get the X-Axis value of the POV on this controller + * + * @return The X-Axis value of the POV on this controller + */ + public float getPovX() { + return 0f; + } + + /** + * Get the Y-Axis value of the POV on this controller + * + * @return The Y-Axis value of the POV on this controller + */ + public float getPovY() { + return 0f; + } + + /** + * Get the dead zone for a specified axis + * + * @param index The index of the axis for which to retrieve the dead zone + * @return The dead zone for the specified axis + */ + public float getDeadZone(int index) { + return 0f; + } + + /** + * Set the dead zone for the specified axis + * + * @param index The index of hte axis for which to set the dead zone + * @param zone The dead zone to use for the specified axis + */ + public void setDeadZone(int index, float zone) { + } + + /** + * Retrieve the number of axes available on this controller. + * + * @return The number of axes available on this controller. + */ + public int getAxisCount() { + return 0; + } + + /** + * Get the name that's given to the specified axis + * + * @param index The index of the axis whose name should be retrieved + * @return The name of the specified axis. + */ + public String getAxisName(int index) { + return "axis n/a"; + } + + /** + * Retrieve the value thats currently available on a specified axis. The + * value will always be between 1.0 and -1.0 and will calibrate as values + * are passed read. It may be useful to get the player to wiggle the + * joystick from side to side to get the calibration right. + * + * @param index The index of axis to be read + * @return The value from the specified axis. + */ + public float getAxisValue(int index) { + return 0f; + } + + /** + * Get the value from the X axis if there is one. If no X axis is defined a + * zero value will be returned. + * + * @return The value from the X axis + */ + public float getXAxisValue() { + return 0f; + } + + /** + * Get the dead zone for the X axis. + * + * @return The dead zone for the X axis + */ + public float getXAxisDeadZone() { + return 0f; + } + + /** + * Set the dead zone for the X axis + * + * @param zone The dead zone to use for the X axis + */ + public void setXAxisDeadZone(float zone) { + } + + /** + * Get the value from the Y axis if there is one. If no Y axis is defined a + * zero value will be returned. + * + * @return The value from the Y axis + */ + public float getYAxisValue() { + return 0f; + } + + /** + * Get the dead zone for the Y axis. + * + * @return The dead zone for the Y axis + */ + public float getYAxisDeadZone() { + return 0f; + } + + /** + * Set the dead zone for the Y axis + * + * @param zone The dead zone to use for the Y axis + */ + public void setYAxisDeadZone(float zone) { + } + + /** + * Get the value from the Z axis if there is one. If no Z axis is defined a + * zero value will be returned. + * + * @return The value from the Z axis + */ + public float getZAxisValue() { + return 0f; + } + + /** + * Get the dead zone for the Z axis. + * + * @return The dead zone for the Z axis + */ + public float getZAxisDeadZone() { + return 0f; + } + + /** + * Set the dead zone for the Z axis + * + * @param zone The dead zone to use for the Z axis + */ + public void setZAxisDeadZone(float zone) { + } + + /** + * Get the value from the RX axis if there is one. If no RX axis is defined + * a zero value will be returned. + * + * @return The value from the RX axis + */ + public float getRXAxisValue() { + return 0f; + } + + /** + * Get the dead zone for the RX axis. + * + * @return The dead zone for the RX axis + */ + public float getRXAxisDeadZone() { + return 0f; + } + + /** + * Set the dead zone for the RX axis + * + * @param zone The dead zone to use for the RX axis + */ + public void setRXAxisDeadZone(float zone) { + } + + /** + * Get the value from the RY axis if there is one. If no RY axis is defined + * a zero value will be returned. + * + * @return The value from the RY axis + */ + public float getRYAxisValue() { + return 0f; + } + + /** + * Get the dead zone for the RY axis. + * + * @return The dead zone for the RY axis + */ + public float getRYAxisDeadZone() { + return 0f; + } + + /** + * Set the dead zone for the RY axis + * + * @param zone The dead zone to use for the RY axis + */ + public void setRYAxisDeadZone(float zone) { + } + + /** + * Get the value from the RZ axis if there is one. If no RZ axis is defined + * a zero value will be returned. + * + * @return The value from the RZ axis + */ + public float getRZAxisValue() { + return 0f; + } + + /** + * Get the dead zone for the RZ axis. + * + * @return The dead zone for the RZ axis + */ + public float getRZAxisDeadZone() { + return 0f; + } + + /** + * Set the dead zone for the RZ axis + * + * @param zone The dead zone to use for the RZ axis + */ + public void setRZAxisDeadZone(float zone) { + } +} \ No newline at end of file Property changes on: trunk/LWJGL/src/java/org/lwjgl/util/input/ControllerAdapter.java ___________________________________________________________________ Name: svn:mime-type + text/plain This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Stanley C. <ah...@hi...> - 2007-11-03 18:21:39
|
adobe creative suite 3 premium http://lohoyora.com |
From: Kia G. <Gri...@te...> - 2007-11-03 15:33:56
|
How are things? java-game-lib-cvs your cock will be so big, the girls will be paying you to fuck them! http://www.grasiosa.com/ Kia Griffiths |
From: Clayton F. <Cla...@de...> - 2007-11-02 17:59:44
|
hello whats up? java-game-lib-cvs turn your trouser mouse into a one eyed giant with MANSTER http://www.filmwiwe.com/ Clayton Franson |
From: <eli...@us...> - 2007-11-01 13:06:33
|
Revision: 2916 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2916&view=rev Author: elias_naur Date: 2007-11-01 06:06:11 -0700 (Thu, 01 Nov 2007) Log Message: ----------- Tweaked exception message Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/Sys.java Modified: trunk/LWJGL/src/java/org/lwjgl/Sys.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/Sys.java 2007-10-30 18:34:38 UTC (rev 2915) +++ trunk/LWJGL/src/java/org/lwjgl/Sys.java 2007-11-01 13:06:11 UTC (rev 2916) @@ -88,7 +88,7 @@ doLoadLibrary(lib_name + POSTFIX64BIT); return; } catch (UnsatisfiedLinkError e2) { - LWJGLUtil.log("Failed to load 64 bit library:" + e2.getMessage()); + LWJGLUtil.log("Failed to load 64 bit library: " + e2.getMessage()); } } // Throw original error This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: genni P. <Pan...@gk...> - 2007-10-31 01:33:09
|
hello comrades java-game-lib-cvs enlarge your dick and they wont worry about what you look like http://www.baepapo.com/ genni Paneff |
From: <eli...@us...> - 2007-10-30 18:34:40
|
Revision: 2915 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2915&view=rev Author: elias_naur Date: 2007-10-30 11:34:38 -0700 (Tue, 30 Oct 2007) Log Message: ----------- Linux: use throwFormattedException in extgl_Open instead of custom message formatting Modified Paths: -------------- trunk/LWJGL/src/native/linux/extgl_glx.c Modified: trunk/LWJGL/src/native/linux/extgl_glx.c =================================================================== --- trunk/LWJGL/src/native/linux/extgl_glx.c 2007-10-28 21:52:35 UTC (rev 2914) +++ trunk/LWJGL/src/native/linux/extgl_glx.c 2007-10-30 18:34:38 UTC (rev 2915) @@ -151,8 +151,6 @@ } bool extgl_Open(JNIEnv *env) { -#define BUFFER_SIZE 2000 - char buffer[BUFFER_SIZE]; if (lib_gl_handle != NULL) return true; /* @@ -166,9 +164,7 @@ */ lib_gl_handle = dlopen("libGL.so.1", RTLD_LAZY | RTLD_GLOBAL); if (lib_gl_handle == NULL) { - snprintf(buffer, BUFFER_SIZE, "Error loading libGL.so.1: %s", dlerror()); - buffer[BUFFER_SIZE - 1] = '\0'; - throwException(env, buffer); + throwFormattedException(env, "Error loading libGL.so.1: %s", dlerror()); return false; } lwjgl_glXGetProcAddressARB = (glXGetProcAddressARBPROC)dlsym(lib_gl_handle, "glXGetProcAddressARB"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2007-10-28 21:52:37
|
Revision: 2914 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2914&view=rev Author: matzon Date: 2007-10-28 14:52:35 -0700 (Sun, 28 Oct 2007) Log Message: ----------- using updated OpenAL Added Paths: ----------- tags/lwjgl1.1.3/LWJGL/libs/win32/OpenAL32.dll Copied: tags/lwjgl1.1.3/LWJGL/libs/win32/OpenAL32.dll (from rev 2913, trunk/LWJGL/libs/win32/OpenAL32.dll) =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2007-10-28 21:52:15
|
Revision: 2913 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2913&view=rev Author: matzon Date: 2007-10-28 14:52:14 -0700 (Sun, 28 Oct 2007) Log Message: ----------- removing old OAL Removed Paths: ------------- tags/lwjgl1.1.3/LWJGL/libs/win32/OpenAL32.dll Deleted: tags/lwjgl1.1.3/LWJGL/libs/win32/OpenAL32.dll =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2007-10-28 21:47:10
|
Revision: 2912 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2912&view=rev Author: matzon Date: 2007-10-28 14:47:08 -0700 (Sun, 28 Oct 2007) Log Message: ----------- using updated OpenAL Modified Paths: -------------- trunk/LWJGL/libs/win32/OpenAL32.dll Modified: trunk/LWJGL/libs/win32/OpenAL32.dll =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2007-10-28 21:44:33
|
Revision: 2911 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2911&view=rev Author: matzon Date: 2007-10-28 14:44:30 -0700 (Sun, 28 Oct 2007) Log Message: ----------- tagging 1.1.3 Added Paths: ----------- tags/lwjgl1.1.3/ Copied: tags/lwjgl1.1.3 (from rev 2910, trunk) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2007-10-28 21:42:47
|
Revision: 2910 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2910&view=rev Author: matzon Date: 2007-10-28 14:42:43 -0700 (Sun, 28 Oct 2007) Log Message: ----------- updating version string to 1.1.3 Modified Paths: -------------- trunk/LWJGL/build.xml trunk/LWJGL/src/java/org/lwjgl/Sys.java trunk/LWJGL/src/java/org/lwjgl/devil/ILNative.java trunk/LWJGL/src/java/org/lwjgl/fmod3/FMOD.java Modified: trunk/LWJGL/build.xml =================================================================== --- trunk/LWJGL/build.xml 2007-10-24 21:55:39 UTC (rev 2909) +++ trunk/LWJGL/build.xml 2007-10-28 21:42:43 UTC (rev 2910) @@ -13,7 +13,7 @@ <property name="lwjgl.docs" location="doc" /> <property name="lwjgl.temp" location="temp" /> <property name="lwjgl.res" location="res" /> - <property name="lwjgl.version" value="1.1.2" /> + <property name="lwjgl.version" value="1.1.3" /> <property name="opengl-template-pattern" value="org/lwjgl/opengl/GL*.java,org/lwjgl/opengl/ARB*.java,org/lwjgl/opengl/ATI*.java,org/lwjgl/opengl/EXT*.java,org/lwjgl/opengl/NV*.java,org/lwjgl/opengl/HP*.java,org/lwjgl/opengl/IBM*.java,org/lwjgl/opengl/SUN*.java,org/lwjgl/opengl/SGIS*.java"/> <!-- ================================================================== --> Modified: trunk/LWJGL/src/java/org/lwjgl/Sys.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/Sys.java 2007-10-24 21:55:39 UTC (rev 2909) +++ trunk/LWJGL/src/java/org/lwjgl/Sys.java 2007-10-28 21:42:43 UTC (rev 2910) @@ -54,7 +54,7 @@ private static final String JNI_LIBRARY_NAME = "lwjgl"; /** Current version of library */ - private static final String VERSION = "1.1.2"; + private static final String VERSION = "1.1.3"; /** Current version of the JNI library */ static final int JNI_VERSION = 11; Modified: trunk/LWJGL/src/java/org/lwjgl/devil/ILNative.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/devil/ILNative.java 2007-10-24 21:55:39 UTC (rev 2909) +++ trunk/LWJGL/src/java/org/lwjgl/devil/ILNative.java 2007-10-28 21:42:43 UTC (rev 2910) @@ -53,7 +53,7 @@ private static String JNI_LIBRARY_NAME = "lwjgl-devil"; /** Version of IL */ - static final String VERSION = "1.1.2"; + static final String VERSION = "1.1.3"; /** Current version of the JNI library */ static final int JNI_VERSION = 2; Modified: trunk/LWJGL/src/java/org/lwjgl/fmod3/FMOD.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/fmod3/FMOD.java 2007-10-24 21:55:39 UTC (rev 2909) +++ trunk/LWJGL/src/java/org/lwjgl/fmod3/FMOD.java 2007-10-28 21:42:43 UTC (rev 2910) @@ -193,7 +193,7 @@ private static String JNI_LIBRARY_NAME = "lwjgl-fmod3"; /** Version of FMOD */ - private static final String VERSION = "1.1.2"; + private static final String VERSION = "1.1.3"; /** Current version of the JNI library */ static final int JNI_VERSION = 1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2007-10-24 21:55:42
|
Revision: 2909 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2909&view=rev Author: matzon Date: 2007-10-24 14:55:39 -0700 (Wed, 24 Oct 2007) Log Message: ----------- miscellaneous minor fixes to improve the loading and displaying of the applet Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java Modified: trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2007-10-24 21:25:54 UTC (rev 2908) +++ trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2007-10-24 21:55:39 UTC (rev 2909) @@ -33,8 +33,8 @@ import java.applet.Applet; import java.applet.AppletStub; +import java.awt.BorderLayout; import java.awt.Color; -import java.awt.FlowLayout; import java.awt.FontMetrics; import java.awt.Graphics; import java.awt.Image; @@ -207,6 +207,8 @@ */ public void init() { + state = STATE_INIT; + // sanity check String[] requiredArgs = {"al_main", "al_logo", "al_progressbar", "al_jars"}; for(int i=0; i<requiredArgs.length; i++) { @@ -221,6 +223,8 @@ // get colors of applet bgColor = getColor("al_bgcolor", Color.white); + setBackground(bgColor); + fgColor = getColor("al_fgcolor", Color.black); errorColor = getColor("al_errorcolor", Color.red); @@ -621,7 +625,7 @@ * replace the current applet with the lwjgl applet * using AppletStub and initialise and start it */ - protected void switchApplet() throws Exception { + protected synchronized void switchApplet() throws Exception { state = STATE_SWITCHING_APPLET; percentage = 100; @@ -636,7 +640,7 @@ lwjglApplet.setStub(this); lwjglApplet.setSize(getWidth(), getHeight()); - setLayout(new FlowLayout(FlowLayout.LEADING, 0, 0)); + setLayout(new BorderLayout()); add(lwjglApplet); state = STATE_INITIALIZE_REAL_APPLET; @@ -644,7 +648,12 @@ state = STATE_START_REAL_APPLET; lwjglApplet.start(); + + + // fix for issue with applet not showing up in firefox + setVisible(false); validate(); + setVisible(true); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2007-10-24 21:25:57
|
Revision: 2908 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2908&view=rev Author: matzon Date: 2007-10-24 14:25:54 -0700 (Wed, 24 Oct 2007) Log Message: ----------- reworked urlconnection.getInputStream to threaded usage, to avoid Opera issue (detective work: kappaOne) Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java Modified: trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2007-10-24 21:23:32 UTC (rev 2907) +++ trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2007-10-24 21:25:54 UTC (rev 2908) @@ -44,6 +44,7 @@ import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; +import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.lang.reflect.Method; @@ -468,7 +469,7 @@ state = STATE_CHECKING_CACHE; - percentage = 5; + percentage = 5; try { if(debugMode) { @@ -677,7 +678,7 @@ urlconnection = urlList[i].openConnection(); String currentFile = getFileName(urlList[i]); - InputStream inputstream = urlconnection.getInputStream(); + InputStream inputstream = getJarInputStream(currentFile, urlconnection); FileOutputStream fos = new FileOutputStream(path + currentFile); @@ -691,11 +692,62 @@ percentage = initialPercentage + ((currentSizeDownload * 55) / totalSizeDownload); subtaskMessage = "Retrieving: " + currentFile + " " + ((currentSizeDownload * 100) / totalSizeDownload) + "%"; } + + inputstream.close(); + fos.close(); } subtaskMessage = ""; } /** + * Retrieves a jar files input stream. This method exists primarily to fix an Opera hang in getInputStream + * @param urlconnection connection to get input stream from + * @return InputStream or null if not possible + */ + private InputStream getJarInputStream(final String currentFile, final URLConnection urlconnection) throws Exception { + final InputStream[] is = new InputStream[1]; + + // try to get the input stream 3 times. + // Wait at most 5 seconds before interrupting the thread + for (int j = 0; j < 3 && is[0] == null; j++) { + Thread t = new Thread() { + public void run() { + try { + is[0] = urlconnection.getInputStream(); + } catch (IOException e) { + /* ignored */ + } + } + }; + t.setName("JarInputStreamThread"); + t.start(); + + int iterationCount = 0; + while(is == null && iterationCount++ < 5) { + try { + t.join(1000); + } catch (InterruptedException inte) { + /* ignored */ + } + } + + try { + t.interrupt(); + t.join(); + } catch (InterruptedException inte) { + /* ignored */ + } + } + + if(is[0] == null) { + throw new Exception("Unable to get input stream for " + currentFile); + } + + + return is[0]; + } + + /** * This method will extract all file from the native jar and extract them * to the subdirectory called "natives" in the local path, will also check * to see if the native jar files is signed properly This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2007-10-24 21:23:36
|
Revision: 2907 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2907&view=rev Author: matzon Date: 2007-10-24 14:23:32 -0700 (Wed, 24 Oct 2007) Log Message: ----------- removed annotation Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/util/jinput/LWJGLEnvironmentPlugin.java Modified: trunk/LWJGL/src/java/org/lwjgl/util/jinput/LWJGLEnvironmentPlugin.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/util/jinput/LWJGLEnvironmentPlugin.java 2007-10-22 20:54:16 UTC (rev 2906) +++ trunk/LWJGL/src/java/org/lwjgl/util/jinput/LWJGLEnvironmentPlugin.java 2007-10-24 21:23:32 UTC (rev 2907) @@ -41,7 +41,6 @@ return controllers; } - @Override public boolean isSupported() { return true; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2007-10-22 20:54:22
|
Revision: 2906 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2906&view=rev Author: matzon Date: 2007-10-22 13:54:16 -0700 (Mon, 22 Oct 2007) Log Message: ----------- added required isSupported Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/util/jinput/LWJGLEnvironmentPlugin.java Modified: trunk/LWJGL/src/java/org/lwjgl/util/jinput/LWJGLEnvironmentPlugin.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/util/jinput/LWJGLEnvironmentPlugin.java 2007-10-22 20:20:28 UTC (rev 2905) +++ trunk/LWJGL/src/java/org/lwjgl/util/jinput/LWJGLEnvironmentPlugin.java 2007-10-22 20:54:16 UTC (rev 2906) @@ -40,4 +40,9 @@ public Controller[] getControllers() { return controllers; } + + @Override + public boolean isSupported() { + return true; + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2007-10-22 20:20:32
|
Revision: 2905 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2905&view=rev Author: matzon Date: 2007-10-22 13:20:28 -0700 (Mon, 22 Oct 2007) Log Message: ----------- latest jinput Modified Paths: -------------- trunk/LWJGL/libs/jinput.jar trunk/LWJGL/libs/linux/libjinput-linux.so trunk/LWJGL/libs/linux/libjinput-linux64.so trunk/LWJGL/libs/macosx/libjinput-osx.jnilib trunk/LWJGL/libs/win32/jinput-dx8.dll trunk/LWJGL/libs/win32/jinput-raw.dll Modified: trunk/LWJGL/libs/jinput.jar =================================================================== (Binary files differ) Modified: trunk/LWJGL/libs/linux/libjinput-linux.so =================================================================== (Binary files differ) Modified: trunk/LWJGL/libs/linux/libjinput-linux64.so =================================================================== (Binary files differ) Modified: trunk/LWJGL/libs/macosx/libjinput-osx.jnilib =================================================================== (Binary files differ) Modified: trunk/LWJGL/libs/win32/jinput-dx8.dll =================================================================== (Binary files differ) Modified: trunk/LWJGL/libs/win32/jinput-raw.dll =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2007-10-20 21:31:55
|
Revision: 2904 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2904&view=rev Author: matzon Date: 2007-10-20 14:31:52 -0700 (Sat, 20 Oct 2007) Log Message: ----------- cleaning imports Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/LinuxSysImplementation.java trunk/LWJGL/src/java/org/lwjgl/WindowsSysImplementation.java trunk/LWJGL/src/java/org/lwjgl/fmod3/FMusicModule.java trunk/LWJGL/src/java/org/lwjgl/input/Cursor.java trunk/LWJGL/src/java/org/lwjgl/input/Keyboard.java trunk/LWJGL/src/java/org/lwjgl/opengl/AWTCanvasInputImplementation.java trunk/LWJGL/src/java/org/lwjgl/opengl/AWTInputAdapter.java trunk/LWJGL/src/java/org/lwjgl/opengl/AWTUtil.java trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java trunk/LWJGL/src/java/org/lwjgl/opengl/EventQueue.java trunk/LWJGL/src/java/org/lwjgl/opengl/InputImplementation.java trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxDisplay.java trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxKeyboard.java trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxMouse.java trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXAWTInput.java trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplay.java trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXMouseEventQueue.java trunk/LWJGL/src/java/org/lwjgl/opengl/MouseEventQueue.java trunk/LWJGL/src/java/org/lwjgl/opengl/Util.java trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDirectInputDevice3.java trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDirectInputDevice8.java trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDirectInputMouse.java trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsKeyboard.java trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsMouse.java trunk/LWJGL/src/java/org/lwjgl/opengl/glu/GLU.java trunk/LWJGL/src/java/org/lwjgl/test/applet/OpenGL.java trunk/LWJGL/src/java/org/lwjgl/test/input/KeyboardTest.java trunk/LWJGL/src/java/org/lwjgl/test/opengl/shaders/Shader.java trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java trunk/LWJGL/src/java/org/lwjgl/util/generator/ContextCapabilitiesGenerator.java trunk/LWJGL/src/java/org/lwjgl/util/generator/ContextGeneratorProcessorFactory.java trunk/LWJGL/src/java/org/lwjgl/util/generator/ReferencesGeneratorProcessorFactory.java Modified: trunk/LWJGL/src/java/org/lwjgl/LinuxSysImplementation.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/LinuxSysImplementation.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/LinuxSysImplementation.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -31,7 +31,6 @@ */ package org.lwjgl; -import java.security.AccessController; /** * Modified: trunk/LWJGL/src/java/org/lwjgl/WindowsSysImplementation.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/WindowsSysImplementation.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/WindowsSysImplementation.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -31,7 +31,6 @@ */ package org.lwjgl; -import java.security.AccessController; /** * <p> Modified: trunk/LWJGL/src/java/org/lwjgl/fmod3/FMusicModule.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/fmod3/FMusicModule.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/fmod3/FMusicModule.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -32,7 +32,6 @@ package org.lwjgl.fmod3; import java.nio.Buffer; -import java.nio.ByteBuffer; /** * This class is a representation of a Module in FMod. Modified: trunk/LWJGL/src/java/org/lwjgl/input/Cursor.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/input/Cursor.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/input/Cursor.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -33,11 +33,10 @@ import java.nio.IntBuffer; -import org.lwjgl.BufferChecks; import org.lwjgl.BufferUtils; -import org.lwjgl.NondirectBufferWrapper; import org.lwjgl.LWJGLException; import org.lwjgl.LWJGLUtil; +import org.lwjgl.NondirectBufferWrapper; import org.lwjgl.Sys; /** Modified: trunk/LWJGL/src/java/org/lwjgl/input/Keyboard.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/input/Keyboard.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/input/Keyboard.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -34,7 +34,6 @@ import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.nio.ByteBuffer; -import java.nio.IntBuffer; import java.util.HashMap; import java.util.Map; Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/AWTCanvasInputImplementation.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/AWTCanvasInputImplementation.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/AWTCanvasInputImplementation.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -31,7 +31,6 @@ */ package org.lwjgl.opengl; -import org.lwjgl.LWJGLException; /** * Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/AWTInputAdapter.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/AWTInputAdapter.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/AWTInputAdapter.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -31,17 +31,15 @@ */ package org.lwjgl.opengl; -import org.lwjgl.LWJGLException; -import org.lwjgl.input.Mouse; -import org.lwjgl.input.Keyboard; +import java.lang.reflect.Method; import java.security.AccessController; -import java.security.PrivilegedExceptionAction; import java.security.PrivilegedActionException; +import java.security.PrivilegedExceptionAction; -import java.lang.reflect.Method; +import org.lwjgl.LWJGLException; +import org.lwjgl.input.Keyboard; +import org.lwjgl.input.Mouse; -import java.awt.Canvas; - /** * This is the static class for using LWJGL input (Mouse and Keyboard) * with an AWTGLCanvas. Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/AWTUtil.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/AWTUtil.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/AWTUtil.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -35,34 +35,23 @@ * @author elias_naur */ -import java.awt.Cursor; import java.awt.Component; -import java.awt.GraphicsDevice; +import java.awt.Cursor; import java.awt.Dimension; +import java.awt.GraphicsDevice; import java.awt.IllegalComponentStateException; import java.awt.Point; -import java.awt.Rectangle; import java.awt.Robot; import java.awt.Toolkit; -import java.awt.event.KeyEvent; import java.awt.image.BufferedImage; -import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; -import java.lang.reflect.Proxy; -import java.nio.ByteBuffer; -import java.nio.FloatBuffer; import java.nio.IntBuffer; import java.security.AccessController; -import java.security.PrivilegedAction; import java.security.PrivilegedActionException; import java.security.PrivilegedExceptionAction; -import java.util.ArrayList; -import java.util.List; -import org.lwjgl.BufferUtils; import org.lwjgl.LWJGLException; import org.lwjgl.LWJGLUtil; -import org.lwjgl.input.Keyboard; final class AWTUtil { public static boolean hasWheel() { Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/AbstractAWTInput.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -31,15 +31,13 @@ */ package org.lwjgl.opengl; -import java.nio.IntBuffer; +import java.awt.Cursor; +import java.awt.Robot; import java.nio.ByteBuffer; +import java.nio.IntBuffer; import org.lwjgl.LWJGLException; -import org.lwjgl.LWJGLUtil; -import java.awt.Cursor; -import java.awt.Robot; - /** * * @author elias_naur <eli...@us...> Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/EventQueue.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/EventQueue.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/EventQueue.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -37,7 +37,6 @@ */ import java.nio.ByteBuffer; -import java.nio.IntBuffer; class EventQueue { private static final int QUEUE_SIZE = 200; Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/InputImplementation.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/InputImplementation.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/InputImplementation.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -39,7 +39,6 @@ */ import java.nio.ByteBuffer; -import java.nio.FloatBuffer; import java.nio.IntBuffer; import org.lwjgl.LWJGLException; Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxDisplay.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxDisplay.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxDisplay.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -42,10 +42,9 @@ import java.nio.FloatBuffer; import java.nio.IntBuffer; +import org.lwjgl.BufferUtils; import org.lwjgl.LWJGLException; import org.lwjgl.LWJGLUtil; -import org.lwjgl.BufferUtils; -import org.lwjgl.input.Keyboard; final class LinuxDisplay implements DisplayImplementation { /* X11 constants */ Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxKeyboard.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxKeyboard.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxKeyboard.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -36,15 +36,13 @@ */ import java.nio.ByteBuffer; -import java.nio.IntBuffer; import java.nio.CharBuffer; +import java.nio.charset.Charset; +import java.nio.charset.CharsetDecoder; import org.lwjgl.BufferUtils; import org.lwjgl.input.Keyboard; -import java.nio.charset.CharsetDecoder; -import java.nio.charset.Charset; - final class LinuxKeyboard { private static final int LockMapIndex = 1; private static final long NoSymbol = 0; Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxMouse.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxMouse.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/LinuxMouse.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -37,15 +37,11 @@ import java.nio.ByteBuffer; import java.nio.IntBuffer; -import java.nio.CharBuffer; import org.lwjgl.BufferUtils; import org.lwjgl.LWJGLException; import org.lwjgl.input.Mouse; -import java.nio.charset.CharsetDecoder; -import java.nio.charset.Charset; - final class LinuxMouse { private static final int NUM_BUTTONS = 3; private static final int POINTER_WARP_BORDER = 10; Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXAWTInput.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXAWTInput.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXAWTInput.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -31,12 +31,7 @@ */ package org.lwjgl.opengl; -import java.nio.IntBuffer; -import java.nio.ByteBuffer; -import org.lwjgl.LWJGLException; -import org.lwjgl.LWJGLUtil; - /** * * @author elias_naur <eli...@us...> Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplay.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplay.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXDisplay.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -39,13 +39,7 @@ */ import java.awt.Cursor; -import java.awt.Dimension; -import java.awt.Point; -import java.awt.Rectangle; import java.awt.Robot; -import java.awt.Toolkit; -import java.awt.event.KeyEvent; -import java.awt.image.BufferedImage; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; @@ -54,7 +48,6 @@ import java.nio.IntBuffer; import java.security.AccessController; import java.security.PrivilegedAction; -import java.security.PrivilegedActionException; import java.security.PrivilegedExceptionAction; import java.util.ArrayList; import java.util.List; @@ -62,7 +55,6 @@ import org.lwjgl.BufferUtils; import org.lwjgl.LWJGLException; import org.lwjgl.LWJGLUtil; -import org.lwjgl.input.Keyboard; final class MacOSXDisplay implements DisplayImplementation { private static final int PBUFFER_HANDLE_SIZE = 24; Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXMouseEventQueue.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXMouseEventQueue.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/MacOSXMouseEventQueue.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -36,19 +36,12 @@ * @author elias_naur */ -import java.awt.event.MouseEvent; -import java.awt.event.MouseListener; -import java.awt.event.MouseMotionListener; -import java.awt.event.MouseWheelEvent; -import java.awt.event.MouseWheelListener; import java.awt.Component; -import java.awt.Rectangle; import java.awt.Point; -import java.nio.ByteBuffer; +import java.awt.Rectangle; import java.nio.IntBuffer; import org.lwjgl.BufferUtils; -import org.lwjgl.input.Mouse; final class MacOSXMouseEventQueue extends MouseEventQueue { private final IntBuffer delta_buffer = BufferUtils.createIntBuffer(2); Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/MouseEventQueue.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/MouseEventQueue.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/MouseEventQueue.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -36,17 +36,16 @@ * @author elias_naur */ +import java.awt.Component; +import java.awt.Point; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import java.awt.event.MouseWheelEvent; import java.awt.event.MouseWheelListener; -import java.awt.Component; -import java.awt.Point; import java.nio.ByteBuffer; import java.nio.IntBuffer; -import org.lwjgl.BufferUtils; import org.lwjgl.input.Mouse; class MouseEventQueue extends EventQueue implements MouseListener, MouseMotionListener, MouseWheelListener { Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/Util.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/Util.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/Util.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -31,10 +31,7 @@ */ package org.lwjgl.opengl; -import java.nio.IntBuffer; -import org.lwjgl.BufferUtils; - /** * Simple utility class. * Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsAWTInput.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -31,16 +31,14 @@ */ package org.lwjgl.opengl; -import java.nio.IntBuffer; +import java.awt.Cursor; import java.nio.ByteBuffer; +import java.nio.IntBuffer; +import org.lwjgl.BufferUtils; import org.lwjgl.LWJGLException; import org.lwjgl.LWJGLUtil; -import org.lwjgl.BufferUtils; -import java.awt.Cursor; -import java.awt.Point; - /** * * @author elias_naur <eli...@us...> Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDirectInputDevice3.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDirectInputDevice3.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDirectInputDevice3.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -38,7 +38,6 @@ import java.nio.ByteBuffer; import java.nio.IntBuffer; -import org.lwjgl.LWJGLException; final class WindowsDirectInputDevice3 extends WindowsDirectInputDevice { /** Re-declare to get the constants into the native headers */ Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDirectInputDevice8.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDirectInputDevice8.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDirectInputDevice8.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -38,7 +38,6 @@ import java.nio.ByteBuffer; import java.nio.IntBuffer; -import org.lwjgl.LWJGLException; final class WindowsDirectInputDevice8 extends WindowsDirectInputDevice { /** Re-declare to get the constants into the native headers */ Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDirectInputMouse.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDirectInputMouse.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsDirectInputMouse.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -38,11 +38,10 @@ import java.nio.ByteBuffer; import java.nio.IntBuffer; -import java.nio.CharBuffer; +import org.lwjgl.BufferUtils; import org.lwjgl.LWJGLException; import org.lwjgl.LWJGLUtil; -import org.lwjgl.BufferUtils; import org.lwjgl.input.Mouse; final class WindowsDirectInputMouse { Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsKeyboard.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsKeyboard.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsKeyboard.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -37,12 +37,10 @@ */ import java.nio.ByteBuffer; -import java.nio.IntBuffer; import java.nio.CharBuffer; -import org.lwjgl.LWJGLException; -import org.lwjgl.LWJGLUtil; import org.lwjgl.BufferUtils; +import org.lwjgl.LWJGLException; import org.lwjgl.input.Keyboard; final class WindowsKeyboard { Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsMouse.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsMouse.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/WindowsMouse.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -38,13 +38,11 @@ import java.nio.ByteBuffer; import java.nio.IntBuffer; -import java.nio.CharBuffer; +import org.lwjgl.BufferUtils; import org.lwjgl.LWJGLException; import org.lwjgl.LWJGLUtil; -import org.lwjgl.BufferUtils; import org.lwjgl.input.Mouse; -import org.lwjgl.input.Cursor; final class WindowsMouse { private final long hwnd; Modified: trunk/LWJGL/src/java/org/lwjgl/opengl/glu/GLU.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/opengl/glu/GLU.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/opengl/glu/GLU.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -33,10 +33,9 @@ import java.nio.ByteBuffer; -import org.lwjgl.opengl.GL11; -import org.lwjgl.opengl.GL12; import org.lwjgl.opengl.ARBImaging; import org.lwjgl.opengl.EXTFramebufferObject; +import org.lwjgl.opengl.GL11; /** * GLU.java Modified: trunk/LWJGL/src/java/org/lwjgl/test/applet/OpenGL.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/test/applet/OpenGL.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/test/applet/OpenGL.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -32,14 +32,12 @@ package org.lwjgl.test.applet; import org.lwjgl.LWJGLException; +import org.lwjgl.input.Keyboard; +import org.lwjgl.input.Mouse; import org.lwjgl.opengl.AWTGLCanvas; -import org.lwjgl.opengl.Display; +import org.lwjgl.opengl.AWTInputAdapter; import org.lwjgl.opengl.GL11; -import org.lwjgl.opengl.AWTInputAdapter; -import org.lwjgl.input.Keyboard; -import org.lwjgl.input.Mouse; - public class OpenGL extends AWTGLCanvas implements Test { float angle = 0; Modified: trunk/LWJGL/src/java/org/lwjgl/test/input/KeyboardTest.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/test/input/KeyboardTest.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/test/input/KeyboardTest.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -35,7 +35,6 @@ import org.lwjgl.opengl.Display; import org.lwjgl.opengl.DisplayMode; import org.lwjgl.opengl.GL11; -import org.lwjgl.opengl.glu.GLU; import org.lwjgl.util.vector.Vector2f; /** Modified: trunk/LWJGL/src/java/org/lwjgl/test/opengl/shaders/Shader.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/test/opengl/shaders/Shader.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/test/opengl/shaders/Shader.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -47,7 +47,6 @@ import org.lwjgl.opengl.ARBProgram; import org.lwjgl.opengl.ARBShaderObjects; import org.lwjgl.opengl.GL11; -import org.lwjgl.opengl.Util; abstract class Shader { Modified: trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -37,7 +37,6 @@ import java.awt.FlowLayout; import java.awt.FontMetrics; import java.awt.Graphics; -import java.awt.GridLayout; import java.awt.Image; import java.awt.Toolkit; import java.io.DataInputStream; Modified: trunk/LWJGL/src/java/org/lwjgl/util/generator/ContextCapabilitiesGenerator.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/util/generator/ContextCapabilitiesGenerator.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/util/generator/ContextCapabilitiesGenerator.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -32,19 +32,15 @@ package org.lwjgl.util.generator; -import com.sun.mirror.apt.*; -import com.sun.mirror.declaration.*; -import com.sun.mirror.type.*; -import com.sun.mirror.util.*; - -import java.util.*; - import java.io.PrintWriter; -import java.io.IOException; -import java.io.File; +import java.util.Arrays; +import java.util.Collection; +import java.util.EnumSet; +import java.util.Iterator; -import java.nio.*; -import java.lang.annotation.Annotation; +import com.sun.mirror.declaration.InterfaceDeclaration; +import com.sun.mirror.declaration.MethodDeclaration; +import com.sun.mirror.type.InterfaceType; /** * Modified: trunk/LWJGL/src/java/org/lwjgl/util/generator/ContextGeneratorProcessorFactory.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/util/generator/ContextGeneratorProcessorFactory.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/util/generator/ContextGeneratorProcessorFactory.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -32,25 +32,28 @@ package org.lwjgl.util.generator; -import com.sun.mirror.apt.*; -import com.sun.mirror.declaration.*; -import com.sun.mirror.type.*; -import com.sun.mirror.util.*; +import static java.util.Collections.unmodifiableCollection; +import java.io.File; +import java.io.IOException; +import java.io.PrintWriter; +import java.util.Arrays; import java.util.Collection; -import java.util.Collections; +import java.util.Map; import java.util.Set; -import java.util.Iterator; -import java.util.Map; -import java.util.Arrays; -import java.io.PrintWriter; -import java.io.IOException; -import java.io.File; +import com.sun.mirror.apt.AnnotationProcessor; +import com.sun.mirror.apt.AnnotationProcessorEnvironment; +import com.sun.mirror.apt.AnnotationProcessorFactory; +import com.sun.mirror.apt.AnnotationProcessors; +import com.sun.mirror.apt.Filer; +import com.sun.mirror.apt.RoundCompleteEvent; +import com.sun.mirror.apt.RoundCompleteListener; +import com.sun.mirror.declaration.AnnotationTypeDeclaration; +import com.sun.mirror.declaration.InterfaceDeclaration; +import com.sun.mirror.declaration.TypeDeclaration; +import com.sun.mirror.util.DeclarationFilter; -import static java.util.Collections.*; -import static com.sun.mirror.util.DeclarationVisitors.*; - /** * * Generator tool for creating the ContexCapabilities class Modified: trunk/LWJGL/src/java/org/lwjgl/util/generator/ReferencesGeneratorProcessorFactory.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/util/generator/ReferencesGeneratorProcessorFactory.java 2007-10-20 21:20:00 UTC (rev 2903) +++ trunk/LWJGL/src/java/org/lwjgl/util/generator/ReferencesGeneratorProcessorFactory.java 2007-10-20 21:31:52 UTC (rev 2904) @@ -32,25 +32,30 @@ package org.lwjgl.util.generator; -import com.sun.mirror.apt.*; -import com.sun.mirror.declaration.*; -import com.sun.mirror.type.*; -import com.sun.mirror.util.*; +import static java.util.Collections.emptyList; +import static java.util.Collections.unmodifiableCollection; +import java.io.File; +import java.io.IOException; +import java.io.PrintWriter; +import java.util.Arrays; import java.util.Collection; -import java.util.Collections; import java.util.Set; -import java.util.Iterator; -import java.util.Map; -import java.util.Arrays; -import java.io.PrintWriter; -import java.io.IOException; -import java.io.File; +import com.sun.mirror.apt.AnnotationProcessor; +import com.sun.mirror.apt.AnnotationProcessorEnvironment; +import com.sun.mirror.apt.AnnotationProcessorFactory; +import com.sun.mirror.apt.AnnotationProcessors; +import com.sun.mirror.apt.Filer; +import com.sun.mirror.apt.RoundCompleteEvent; +import com.sun.mirror.apt.RoundCompleteListener; +import com.sun.mirror.declaration.AnnotationTypeDeclaration; +import com.sun.mirror.declaration.InterfaceDeclaration; +import com.sun.mirror.declaration.MethodDeclaration; +import com.sun.mirror.declaration.ParameterDeclaration; +import com.sun.mirror.declaration.TypeDeclaration; +import com.sun.mirror.util.DeclarationFilter; -import static java.util.Collections.*; -import static com.sun.mirror.util.DeclarationVisitors.*; - /** * * Generator tool for creating the References class This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2007-10-20 21:20:02
|
Revision: 2903 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2903&view=rev Author: matzon Date: 2007-10-20 14:20:00 -0700 (Sat, 20 Oct 2007) Log Message: ----------- applied kappaOnes latest fixes Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java Modified: trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2007-10-20 19:02:48 UTC (rev 2902) +++ trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2007-10-20 21:20:00 UTC (rev 2903) @@ -34,6 +34,7 @@ import java.applet.Applet; import java.applet.AppletStub; import java.awt.Color; +import java.awt.FlowLayout; import java.awt.FontMetrics; import java.awt.Graphics; import java.awt.GridLayout; @@ -287,11 +288,11 @@ return lwjglApplet; } - /* - * @see java.applet.AppletStub#appletResize(int, int) + /** + * Transfers the call of AppletResize from the stub to the lwjglApplet. */ public void appletResize(int width, int height) { - /* uhm? */ + resize(width, height); } /* @@ -306,9 +307,8 @@ */ public synchronized void paint(Graphics g) { - // paint applet if available - if(lwjglApplet != null && state == STATE_DONE) { - lwjglApplet.paint(g); + // don't paint loader if applet loaded + if(state == STATE_DONE) { return; } @@ -634,16 +634,17 @@ lwjglApplet = (Applet) appletClass.newInstance(); lwjglApplet.setStub(this); + lwjglApplet.setSize(getWidth(), getHeight()); - setLayout(new GridLayout(1, 1)); + setLayout(new FlowLayout(FlowLayout.LEADING, 0, 0)); add(lwjglApplet); - validate(); state = STATE_INITIALIZE_REAL_APPLET; lwjglApplet.init(); state = STATE_START_REAL_APPLET; lwjglApplet.start(); + validate(); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ma...@us...> - 2007-10-20 19:02:50
|
Revision: 2902 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2902&view=rev Author: matzon Date: 2007-10-20 12:02:48 -0700 (Sat, 20 Oct 2007) Log Message: ----------- removing direct x, can be picked up in the lwjgl-directx tag Modified Paths: -------------- trunk/LWJGL/build.xml trunk/LWJGL/platform_build/windows_ant/build.xml Removed Paths: ------------- trunk/LWJGL/src/java/org/lwjgl/d3d/ trunk/LWJGL/src/java/org/lwjgl/test/d3d/ trunk/LWJGL/src/native/windows/org_lwjgl_d3d_D3DUtil.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3D9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3D9Ex.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DBaseTexture9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DCubeTexture9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DDevice9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DDevice9Ex.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DIndexBuffer9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DPixelShader9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DQuery9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DResource9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DStateBlock9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DSurface9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DSwapChain9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DSwapChain9Ex.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DTexture9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DVertexBuffer9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DVertexDeclaration9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DVertexShader9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DVolume9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DVolumeTexture9.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_WindowsContextImplementation.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_WindowsDirectInput3.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_WindowsDirectInput8.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_WindowsDirectInputDevice3.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_WindowsDirectInputDevice8.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_WindowsDisplay.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_WindowsDisplayPeerInfo.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_WindowsKeyboard.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_WindowsPeerInfo.c trunk/LWJGL/src/native/windows/org_lwjgl_d3d_WindowsRegistry.c Modified: trunk/LWJGL/build.xml =================================================================== --- trunk/LWJGL/build.xml 2007-10-20 15:57:41 UTC (rev 2901) +++ trunk/LWJGL/build.xml 2007-10-20 19:02:48 UTC (rev 2902) @@ -539,7 +539,6 @@ <src path="${lwjgl.src}/generated/"/> <include name="org/lwjgl/*.java"/> <include name="org/lwjgl/input/**"/> - <include name="org/lwjgl/d3d/**"/> <include name="org/lwjgl/opengl/**"/> <include name="org/lwjgl/openal/**"/> <include name="org/lwjgl/util/**"/> @@ -584,38 +583,6 @@ <class name="org.lwjgl.opengl.WindowsPeerInfo" /> <class name="org.lwjgl.opengl.WindowsDisplayPeerInfo" /> <class name="org.lwjgl.opengl.WindowsContextImplementation" /> - <!-- Direct 3D --> - <class name="org.lwjgl.d3d.D3DUtil" /> - <class name="org.lwjgl.d3d.IDirect3D9" /> - <class name="org.lwjgl.d3d.IDirect3D9Ex" /> - <class name="org.lwjgl.d3d.IDirect3DBaseTexture9" /> - <class name="org.lwjgl.d3d.IDirect3DCubeTexture9" /> - <class name="org.lwjgl.d3d.IDirect3DDevice9" /> - <class name="org.lwjgl.d3d.IDirect3DDevice9Ex" /> - <class name="org.lwjgl.d3d.IDirect3DIndexBuffer9" /> - <class name="org.lwjgl.d3d.IDirect3DPixelShader9" /> - <class name="org.lwjgl.d3d.IDirect3DQuery9" /> - <class name="org.lwjgl.d3d.IDirect3DResource9" /> - <class name="org.lwjgl.d3d.IDirect3DStateBlock9" /> - <class name="org.lwjgl.d3d.IDirect3DSurface9" /> - <class name="org.lwjgl.d3d.IDirect3DSwapChain9" /> - <class name="org.lwjgl.d3d.IDirect3DSwapChain9Ex" /> - <class name="org.lwjgl.d3d.IDirect3DTexture9" /> - <class name="org.lwjgl.d3d.IDirect3DVertexBuffer9" /> - <class name="org.lwjgl.d3d.IDirect3DVertexDeclaration9" /> - <class name="org.lwjgl.d3d.IDirect3DVertexShader9" /> - <class name="org.lwjgl.d3d.IDirect3DVolume9" /> - <class name="org.lwjgl.d3d.IDirect3DVolumeTexture9" /> - <class name="org.lwjgl.d3d.WindowsDisplay" /> - <class name="org.lwjgl.d3d.WindowsContextImplementation" /> - <class name="org.lwjgl.d3d.WindowsDirectInput3" /> - <class name="org.lwjgl.d3d.WindowsDirectInputDevice3" /> - <class name="org.lwjgl.d3d.WindowsDirectInput8" /> - <class name="org.lwjgl.d3d.WindowsDirectInputDevice8" /> - <class name="org.lwjgl.d3d.WindowsPeerInfo" /> - <class name="org.lwjgl.d3d.WindowsDisplayPeerInfo" /> - <class name="org.lwjgl.d3d.WindowsRegistry" /> - <class name="org.lwjgl.d3d.WindowsKeyboard" /> </javah> <javah classpath="${lwjgl.bin}" destdir="${lwjgl.src.native}/macosx" force="yes"> Modified: trunk/LWJGL/platform_build/windows_ant/build.xml =================================================================== --- trunk/LWJGL/platform_build/windows_ant/build.xml 2007-10-20 15:57:41 UTC (rev 2901) +++ trunk/LWJGL/platform_build/windows_ant/build.xml 2007-10-20 19:02:48 UTC (rev 2902) @@ -53,7 +53,7 @@ </target> <target name="compile"> - <property name="libs" value="Kernel32.lib ole32.lib dinput.lib dxguid.lib OpenGL32.Lib Version.lib user32.lib Gdi32.lib Advapi32.lib jawt.lib delayimp.lib winmm.lib d3dx9.lib d3d9.lib"/> + <property name="libs" value="Kernel32.lib ole32.lib dinput.lib dxguid.lib OpenGL32.Lib Version.lib user32.lib Gdi32.lib Advapi32.lib jawt.lib delayimp.lib winmm.lib"/> <antcall target="compile_dir"/> <antcall target="link"/> </target> Deleted: trunk/LWJGL/src/native/windows/org_lwjgl_d3d_D3DUtil.c =================================================================== --- trunk/LWJGL/src/native/windows/org_lwjgl_d3d_D3DUtil.c 2007-10-20 15:57:41 UTC (rev 2901) +++ trunk/LWJGL/src/native/windows/org_lwjgl_d3d_D3DUtil.c 2007-10-20 19:02:48 UTC (rev 2902) @@ -1,121 +0,0 @@ -#include <D3dx9math.h> -#include "org_lwjgl_d3d_D3DUtil.h" - -/* - * Class: org_lwjgl_d3d_D3DUtil - * Method: nD3DXMatrixLookAtLH - * Signature: (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_d3d_D3DUtil_nD3DXMatrixLookAtLH - (JNIEnv *env, jclass clazz, jobject outBuffer, jobject eyeBuffer, jobject atBuffer, jobject upBuffer) { - - D3DXMATRIX* out = (D3DXMATRIX*)((*env)->GetDirectBufferAddress(env, outBuffer)); - CONST D3DXVECTOR3 *eye = (D3DXVECTOR3*)((*env)->GetDirectBufferAddress(env, eyeBuffer)); - CONST D3DXVECTOR3 *at = (D3DXVECTOR3*)((*env)->GetDirectBufferAddress(env, atBuffer)); - CONST D3DXVECTOR3 *up = (D3DXVECTOR3*)((*env)->GetDirectBufferAddress(env, upBuffer)); - - D3DXMatrixLookAtLH(out, eye, at, up); -} - -/* - * Class: org_lwjgl_d3d_D3DUtil - * Method: nD3DXMatrixPerspectiveFovLH - * Signature: (Ljava/nio/ByteBuffer;FFFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_d3d_D3DUtil_nD3DXMatrixPerspectiveFovLH - (JNIEnv *env, jclass clazz, jobject outBuffer, jfloat fovy, jfloat aspect, jfloat zn, jfloat zf) { - D3DXMATRIX *out = (D3DXMATRIX*)((*env)->GetDirectBufferAddress(env, outBuffer)); - - D3DXMatrixPerspectiveFovLH(out, fovy, aspect, zn, zf); -} - -/* - * Class: org_lwjgl_d3d_D3DUtil - * Method: nD3DXMatrixIdentity - * Signature: (Ljava/nio/ByteBuffer;)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_d3d_D3DUtil_nD3DXMatrixIdentity - (JNIEnv *env, jclass clazz, jobject outBuffer) { - D3DXMATRIX *out = (D3DXMATRIX*)((*env)->GetDirectBufferAddress(env, outBuffer)); - - D3DXMatrixIdentity(out); -} - -/* - * Class: org_lwjgl_d3d_D3DUtil - * Method: nD3DXMatrixScaling - * Signature: (Ljava/nio/ByteBuffer;FFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_d3d_D3DUtil_nD3DXMatrixScaling - (JNIEnv *env, jclass clazz, jobject outBuffer, jfloat sx, jfloat sy, jfloat sz) { - D3DXMATRIX *out = (D3DXMATRIX*)((*env)->GetDirectBufferAddress(env, outBuffer)); - - D3DXMatrixScaling(out, sx, sy, sz); -} - -/* - * Class: org_lwjgl_d3d_D3DUtil - * Method: nD3DXMatrixTranslation - * Signature: (Ljava/nio/ByteBuffer;FFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_d3d_D3DUtil_nD3DXMatrixTranslation - (JNIEnv *env, jclass clazz, jobject outBuffer, jfloat x, jfloat y, jfloat z) { - D3DXMATRIX *out = (D3DXMATRIX*)((*env)->GetDirectBufferAddress(env, outBuffer)); - - D3DXMatrixTranslation(out, x, y, z); -} - - -/* - * Class: org_lwjgl_d3d_D3DUtil - * Method: nD3DXMatrixRotationX - * Signature: (Ljava/nio/ByteBuffer;F)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_d3d_D3DUtil_nD3DXMatrixRotationX - (JNIEnv *env, jclass clazz, jobject outBuffer, jfloat angle) { - D3DXMATRIX *out = (D3DXMATRIX*)((*env)->GetDirectBufferAddress(env, outBuffer)); - - D3DXMatrixRotationY(out, angle); -} - -/* - * Class: org_lwjgl_d3d_D3DUtil - * Method: nD3DXMatrixRotationY - * Signature: (Ljava/nio/ByteBuffer;F)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_d3d_D3DUtil_nD3DXMatrixRotationY - (JNIEnv *env, jclass clazz, jobject outBuffer, jfloat angle) { - D3DXMATRIX *out = (D3DXMATRIX*)((*env)->GetDirectBufferAddress(env, outBuffer)); - - D3DXMatrixRotationY(out, angle); -} - -/* - * Class: org_lwjgl_d3d_D3DUtil - * Method: nD3DXMatrixRotationZ - * Signature: (Ljava/nio/ByteBuffer;F)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_d3d_D3DUtil_nD3DXMatrixRotationZ - (JNIEnv *env, jclass clazz, jobject outBuffer, jfloat angle) { - D3DXMATRIX *out = (D3DXMATRIX*)((*env)->GetDirectBufferAddress(env, outBuffer)); - - D3DXMatrixRotationY(out, angle); -} - -/* - * Class: org_lwjgl_d3d_D3DUtil - * Method: nD3DXMatrixMultiply - * Signature: (Ljava/nio/ByteBuffer;Lorg/lwjgl/d3d/D3DMatrix;Lorg/lwjgl/d3d/D3DMatrix;)Ljava/nio/ByteBuffer; - */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_d3d_D3DUtil_nD3DXMatrixMultiply - (JNIEnv *env, jclass clazz, jobject outBuffer, jobject m1Buffer, jobject m2Buffer) { - D3DXMATRIX *out = (D3DXMATRIX*)((*env)->GetDirectBufferAddress(env, outBuffer)); - CONST D3DXMATRIX *m1 = (D3DXMATRIX*)((*env)->GetDirectBufferAddress(env, m1Buffer)); - CONST D3DXMATRIX *m2 = (D3DXMATRIX*)((*env)->GetDirectBufferAddress(env, m2Buffer)); - - D3DXMATRIX *result = D3DXMatrixMultiply(out, m1, m2); - - jobject resultBuffer = (*env)->NewDirectByteBuffer(env, result, sizeof(D3DXMATRIX)); - - return resultBuffer; -} Deleted: trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3D9.c =================================================================== --- trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3D9.c 2007-10-20 15:57:41 UTC (rev 2901) +++ trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3D9.c 2007-10-20 19:02:48 UTC (rev 2902) @@ -1,213 +0,0 @@ -#include <windows.h> -#include <windowsx.h> -#include <d3d9.h> -#include <stdio.h> -#include "org_lwjgl_d3d_IDirect3D9.h" -#include "context.h" - -extern void setPointer(JNIEnv *env, jobject classInstance, const char* methodName, jlong pointer); -//void setPointer(JNIEnv *env, jobject classInstance, const char* methodName, jlong pointer) { -// jclass clazz = (*env)->GetObjectClass(env, classInstance); -// jmethodID mid = (*env)->GetMethodID(env, clazz, methodName, "(J)V"); -// if (mid != NULL) { -// (*env)->CallVoidMethod(env, classInstance, mid, pointer); -// } -//} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nCheckDepthStencilMatch - * Signature: (IIIII)I - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9_nCheckDepthStencilMatch - (JNIEnv *env, jobject object, jlong iDirect3D9, jint adapter, jint deviceType, jint adapterFormat, jint renderTargetFormat, jint depthStencilFormat) { - - return IDirect3D9_CheckDepthStencilMatch((IDirect3D9 *)iDirect3D9, adapter, deviceType, adapterFormat, renderTargetFormat, depthStencilFormat); -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nCheckDeviceFormat - * Signature: (IIIJII)I - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9_nCheckDeviceFormat - (JNIEnv *env, jobject object, jlong iDirect3D9, jint adapter, jint deviceType, jint adapterFormat, jint usage, jint resoruceType, jint checkFormat) { - - return IDirect3D9_CheckDeviceFormat((IDirect3D9 *)iDirect3D9, adapter, deviceType, adapterFormat, usage, resoruceType, checkFormat); -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nCheckDeviceFormatConversion - * Signature: (IIII)I - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9_nCheckDeviceFormatConversion - (JNIEnv *env, jobject object, jlong iDirect3D9, jint adapter, jint deviceType, jint sourceFormat, jint targetFormat) { - - return IDirect3D9_CheckDeviceFormatConversion((IDirect3D9 *)iDirect3D9, adapter, deviceType, sourceFormat, targetFormat); -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nCheckDeviceMultiSampleType - * Signature: (IIIZILjava/nio/IntBuffer;)I - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9_nCheckDeviceMultiSampleType - (JNIEnv *env, jobject object, jlong iDirect3D9, jint adapter, jint deviceType, jint surfaceFormat, boolean windowed, jint multiSampleType, jobject qualityLevels) { - - DWORD * quality = NULL; - - if(qualityLevels != NULL) { - DWORD * quality = (DWORD *)((*env)->GetDirectBufferAddress(env, qualityLevels)); - } - - return IDirect3D9_CheckDeviceMultiSampleType((IDirect3D9 *)iDirect3D9, adapter, deviceType, surfaceFormat, windowed, multiSampleType, quality); -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nCheckDeviceType - * Signature: (IIIIZ)I - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9_nCheckDeviceType - (JNIEnv *env, jobject object, jlong iDirect3D9, jint adapter, jint deviceType, jint displayFormat, jint backBufferFormat, boolean windowed) { - - return IDirect3D9_CheckDeviceType((IDirect3D9 *)iDirect3D9, adapter, deviceType, displayFormat, backBufferFormat, windowed); -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nCreateDevice - * Signature: (IIJJLorg/lwjgl/d3d/IDirect3D9$D3DPRESENT_PARAMETERS;Lorg/lwjgl/d3d/IDirect3DDevice9;)I - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9_nCreateDevice - (JNIEnv *env, jobject object, jlong iDirect3D9, jint adapter, jint deviceType, jlong focusWindow, jint behaviorFlags, jobject presentationParameters, jobject returnedDeviceInterface) { - - IDirect3DDevice9 *iDirect3DDevice9; - HWND myHwnd = (HWND)(INT_PTR)focusWindow; - D3DPRESENT_PARAMETERS* pPresentationParameters = (D3DPRESENT_PARAMETERS*)((*env)->GetDirectBufferAddress(env, presentationParameters)); - - HRESULT hResult = IDirect3D9_CreateDevice((IDirect3D9 *)iDirect3D9, adapter, deviceType, - myHwnd, behaviorFlags, pPresentationParameters, &iDirect3DDevice9); - - setPointer(env, returnedDeviceInterface, "setIDirect3DDevice9", (jlong)iDirect3DDevice9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nEnumAdapterModes - * Signature: (IIILorg/lwjgl/d3d/IDirect3D9$D3DDISPLAYMODE;)I - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9_nEnumAdapterModes - (JNIEnv *env, jobject object, jlong iDirect3D9, jint adapter, jint format, jint modeIndex, jobject mode) { - - D3DDISPLAYMODE * displayMode = (D3DDISPLAYMODE *)((*env)->GetDirectBufferAddress(env, mode)); - - return IDirect3D9_EnumAdapterModes((IDirect3D9 *)iDirect3D9, adapter, format, modeIndex, displayMode); -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nGetAdapterCount - * Signature: (J)I - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_d3d_IDirect3D9_nGetAdapterCount - (JNIEnv *env, jobject object, jlong iDirect3D9) { - - return IDirect3D9_GetAdapterCount((IDirect3D9 *)iDirect3D9); -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nGetAdapterDisplayMode - * Signature: (ILorg/lwjgl/d3d/IDirect3D9$D3DDISPLAYMODE;)I - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9_nGetAdapterDisplayMode - (JNIEnv *env, jobject object, jlong iDirect3D9, jint adapter, jobject mode) { - - D3DDISPLAYMODE * displayMode = (D3DDISPLAYMODE *)((*env)->GetDirectBufferAddress(env, mode)); - - return IDirect3D9_GetAdapterDisplayMode((IDirect3D9 *)iDirect3D9, adapter, displayMode); -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nGetAdapterIdentifier - * Signature: (IJLorg/lwjgl/d3d/IDirect3D9$D3DADAPTER_IDENTIFIER9;)I - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9_nGetAdapterIdentifier - (JNIEnv *env, jobject object, jlong iDirect3D9, jint adapter, jint flags, jobject identifier) { - - D3DADAPTER_IDENTIFIER9 * adapterIdentifier = (D3DADAPTER_IDENTIFIER9 *)((*env)->GetDirectBufferAddress(env, identifier)); - - return IDirect3D9_GetAdapterIdentifier((IDirect3D9 *)iDirect3D9, adapter, flags, adapterIdentifier); -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nGetAdapterModeCount - * Signature: (II)I - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_d3d_IDirect3D9_nGetAdapterModeCount - (JNIEnv *env, jobject object, jlong iDirect3D9, jint adapter, jint format) { - - return IDirect3D9_GetAdapterModeCount((IDirect3D9 *)iDirect3D9, adapter, format); -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nGetAdapterMonitor - * Signature: (I)I - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9_nGetAdapterMonitor - (JNIEnv *env, jobject object, jlong iDirect3D9, jint adapter) { - - return (jlong)IDirect3D9_GetAdapterMonitor((IDirect3D9 *)iDirect3D9, adapter); -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nGetDeviceCaps - * Signature: (IILorg/lwjgl/d3d/IDirect3D9$D3DCAPS9;)I - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9_nGetDeviceCaps - (JNIEnv *env, jobject object, jlong iDirect3D9, jint adapter, jint deviceType, jobject caps) { - D3DCAPS9 * d3dCaps = (D3DCAPS9 *)((*env)->GetDirectBufferAddress(env, caps)); - - return IDirect3D9_GetDeviceCaps((IDirect3D9 *)iDirect3D9, adapter, deviceType, d3dCaps); -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nRegisterSoftwareDevice - * Signature: ()I - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9_nRegisterSoftwareDevice - (JNIEnv *env, jobject object, jlong iDirect3D9) { - - return 0; -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nRelease - * Signature: (J)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_d3d_IDirect3D9_nRelease - (JNIEnv *env, jobject object, jlong iDirect3D9) { - IDirect3D9_Release((IDirect3D9 *)iDirect3D9); -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9 - * Method: nCreate - * Signature: ()J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9_nCreate - (JNIEnv *env, jclass clazz) { - IDirect3D9 *direct3DInterface = Direct3DCreate9(D3D_SDK_VERSION); - - return (jlong)direct3DInterface; -} Deleted: trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3D9Ex.c =================================================================== --- trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3D9Ex.c 2007-10-20 15:57:41 UTC (rev 2901) +++ trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3D9Ex.c 2007-10-20 19:02:48 UTC (rev 2902) @@ -1,56 +0,0 @@ -#include "org_lwjgl_d3d_IDirect3D9Ex.h" - -/* - * Class: org_lwjgl_d3d_IDirect3D9Ex - * Method: nCreateDeviceEx - * Signature: (JIIJJLorg/lwjgl/d3d/D3DPresentParameters;Lorg/lwjgl/d3d/D3DDisplaymodeEx;Lorg/lwjgl/d3d/IDirect3DDevice9Ex;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9Ex_nCreateDeviceEx - (JNIEnv *env, jobject obj, jlong IDirect3D9Ex, jint adapter, jint deviceType, jlong focusWindow, jlong behaviorFlags, jobject presentationParameters, jobject fullscreenDisplayMode, jobject returnedDeviceInterface) { - - return 0; -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9Ex - * Method: nEnumAdapterModesEx - * Signature: (JILorg/lwjgl/d3d/D3DDisplaymodeFilter;ILorg/lwjgl/d3d/D3DDisplaymodeEx;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9Ex_nEnumAdapterModesEx - (JNIEnv *env, jobject obj, jlong IDirect3D9Ex, jint adapter, jobject filter, jint mode, jobject displayMode) { - - return 0; -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9Ex - * Method: nGetAdapterDisplayModeEx - * Signature: (JILorg/lwjgl/d3d/D3DDisplaymodeEx;I)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9Ex_nGetAdapterDisplayModeEx - (JNIEnv *env, jobject obj, jlong IDirect3D9Ex, jint adapter, jobject mode, jint rotation) { - - return 0; -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9Ex - * Method: nGetAdapterLUID - * Signature: (JILorg/lwjgl/d3d/LUID;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3D9Ex_nGetAdapterLUID - (JNIEnv *env, jobject obj, jlong IDirect3D9Ex, jint adapter, jobject LUID) { - - return 0; -} - -/* - * Class: org_lwjgl_d3d_IDirect3D9Ex - * Method: nGetAdapterModeCountEx - * Signature: (JILorg/lwjgl/d3d/D3DDisplaymodeFilter;)I - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_d3d_IDirect3D9Ex_nGetAdapterModeCountEx - (JNIEnv *env, jobject obj, jlong IDirect3D9Ex, jint adapter, jobject filter) { - - return 0; -} Deleted: trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DBaseTexture9.c =================================================================== --- trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DBaseTexture9.c 2007-10-20 15:57:41 UTC (rev 2901) +++ trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DBaseTexture9.c 2007-10-20 19:02:48 UTC (rev 2902) @@ -1,66 +0,0 @@ -#include "org_lwjgl_d3d_IDirect3DBaseTexture9.h" - -/* - * Class: org_lwjgl_d3d_IDirect3DBaseTexture9 - * Method: nGenerateMipSubLevels - * Signature: (J)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_d3d_IDirect3DBaseTexture9_nGenerateMipSubLevels - (JNIEnv *env, jobject obj, jlong IDirect3DBaseTexture9) { - -} - -/* - * Class: org_lwjgl_d3d_IDirect3DBaseTexture9 - * Method: nGetAutoGenFilterType - * Signature: (J)I - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_d3d_IDirect3DBaseTexture9_nGetAutoGenFilterType - (JNIEnv *env, jobject obj, jlong IDirect3DBaseTexture9) { - - return 0; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DBaseTexture9 - * Method: nGetLevelCount - * Signature: (J)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DBaseTexture9_nGetLevelCount - (JNIEnv *env, jobject obj, jlong IDirect3DBaseTexture9) { - - return 0; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DBaseTexture9 - * Method: nGetLOD - * Signature: (J)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DBaseTexture9_nGetLOD - (JNIEnv *env, jobject obj, jlong IDirect3DBaseTexture9) { - - return 0; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DBaseTexture9 - * Method: nSetAutoGenFilterType - * Signature: (JI)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DBaseTexture9_nSetAutoGenFilterType - (JNIEnv *env, jobject obj, jlong IDirect3DBaseTexture9, jint filterType) { - - return 0; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DBaseTexture9 - * Method: nSetLOD - * Signature: (JJ)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DBaseTexture9_nSetLOD - (JNIEnv *env, jobject obj, jlong IDirect3DBaseTexture9, jlong LODNew) { - - return 0; -} Deleted: trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DCubeTexture9.c =================================================================== --- trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DCubeTexture9.c 2007-10-20 15:57:41 UTC (rev 2901) +++ trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DCubeTexture9.c 2007-10-20 19:02:48 UTC (rev 2902) @@ -1,56 +0,0 @@ -#include "org_lwjgl_d3d_IDirect3DCubeTexture9.h" - -/* - * Class: org_lwjgl_d3d_IDirect3DCubeTexture9 - * Method: nAddDirtyRect - * Signature: (JILorg/lwjgl/d3d/Rectangle;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DCubeTexture9_nAddDirtyRect - (JNIEnv *env, jobject obj, jlong IDirect3DCubeTexture9, jint faceType, jobject dirtyRect) { - - return 0; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DCubeTexture9 - * Method: nGetCubeMapSurface - * Signature: (JIILorg/lwjgl/d3d/IDirect3DSurface9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DCubeTexture9_nGetCubeMapSurface - (JNIEnv *env, jobject obj, jlong IDirect3DCubeTexture9, jint faceType, jint level, jobject cubeMapSurface) { - - return 0; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DCubeTexture9 - * Method: nGetLevelDesc - * Signature: (JILorg/lwjgl/d3d/D3DSsurfaceDesc;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DCubeTexture9_nGetLevelDesc - (JNIEnv *env, jobject obj, jlong IDirect3DCubeTexture9, jint level, jobject desc) { - - return 0; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DCubeTexture9 - * Method: nLockRect - * Signature: (JIILorg/lwjgl/d3d/D3DLockedRect;Lorg/lwjgl/d3d/Rectangle;J)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DCubeTexture9_nLockRect - (JNIEnv *env, jobject obj, jlong IDirect3DCubeTexture9, jint faceType, jint level, jobject lockedRect, jobject rect, jlong flags) { - - return 0; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DCubeTexture9 - * Method: nUnlockRect - * Signature: (JII)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DCubeTexture9_nUnlockRect - (JNIEnv *env, jobject obj, jlong IDirect3DCubeTexture9, jint faceType, jint level) { - - return 0; -} Deleted: trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DDevice9.c =================================================================== --- trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DDevice9.c 2007-10-20 15:57:41 UTC (rev 2901) +++ trunk/LWJGL/src/native/windows/org_lwjgl_d3d_IDirect3DDevice9.c 2007-10-20 19:02:48 UTC (rev 2902) @@ -1,1616 +0,0 @@ -#include <d3d9.h> -#include "org_lwjgl_d3d_IDirect3DDevice9.h" - -void setPointer(JNIEnv *env, jobject classInstance, const char* methodName, jlong pointer) { - jclass clazz = (*env)->GetObjectClass(env, classInstance); - jmethodID mid = (*env)->GetMethodID(env, clazz, methodName, "(J)V"); - if (mid != NULL) { - (*env)->CallVoidMethod(env, classInstance, mid, pointer); - } -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nBeginScene - * Signature: ()J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nBeginScene - (JNIEnv *env, jobject object, jlong iDirect3DDevice9) { - - return IDirect3DDevice9_BeginScene((IDirect3DDevice9*)iDirect3DDevice9); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nBeginStateBlock - * Signature: ()J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nBeginStateBlock - (JNIEnv *env, jobject object, jlong iDirect3DDevice9) { - - return IDirect3DDevice9_BeginStateBlock((IDirect3DDevice9*)iDirect3DDevice9); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nClear - * Signature: (JLjava/nio/LongBuffer;JIFJ)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nClear - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jlong count, jobject rects, jlong flags, jint color, jfloat z, jlong stencil) { - - //fix rects - return IDirect3DDevice9_Clear((IDirect3DDevice9*)iDirect3DDevice9, count, NULL, flags, color, z, stencil); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nColorFill - * Signature: (Lorg/lwjgl/d3d/IDirect3DSurface9;Lorg/lwjgl/d3d/Rectangle;I)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nColorFill - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jlong surface, jobject rectBuffer, jint color) { - - RECT *rect = (RECT*)((*env)->GetDirectBufferAddress(env, rectBuffer)); - - return IDirect3DDevice9_ColorFill((IDirect3DDevice9*)iDirect3DDevice9, (IDirect3DSurface9*)surface, rect, color); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nCreateAdditionalSwapChain - * Signature: (Lorg/lwjgl/d3d/D3DPresentParameters;Lorg/lwjgl/d3d/IDirect3DSwapChain9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nCreateAdditionalSwapChain - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jobject presentationParametersBuffer, jobject swapChain) { - - D3DPRESENT_PARAMETERS *presentationParameters = (D3DPRESENT_PARAMETERS*)((*env)->GetDirectBufferAddress(env, presentationParametersBuffer)); - IDirect3DSwapChain9 *iDirect3DSwapChain9; - - HRESULT hResult = IDirect3DDevice9_CreateAdditionalSwapChain((IDirect3DDevice9*)iDirect3DDevice9, presentationParameters, &iDirect3DSwapChain9); - - setPointer(env, swapChain, "setIDirect3DSwapChain9", (jlong)iDirect3DSwapChain9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nCreateCubeTexture - * Signature: (IIJIILorg/lwjgl/d3d/IDirect3DCubeTexture9;J)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nCreateCubeTexture - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint edgeLength, jint levels, jlong usage, jint format, jint pool, jobject cubeTexture, jlong shareHandle) { - - IDirect3DCubeTexture9 *iDirect3DCubeTexture9; - - HRESULT hResult = IDirect3DDevice9_CreateCubeTexture((IDirect3DDevice9*)iDirect3DDevice9, edgeLength, levels, - usage, format, pool, &iDirect3DCubeTexture9, (HANDLE*)shareHandle); - - setPointer(env, cubeTexture, "setIDirect3DCubeTexture9", (jlong)iDirect3DCubeTexture9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nCreateDepthStencilSurface - * Signature: (IIIIJZLorg/lwjgl/d3d/IDirect3DSurface9;J)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nCreateDepthStencilSurface - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint width, jint height, jint format, jint multiSample, jlong multiSampleQuality, jboolean discard, jobject surface, jlong sharedHandle) { - - IDirect3DSurface9 *iDirect3DSurface9; - - HRESULT hResult = IDirect3DDevice9_CreateDepthStencilSurface((IDirect3DDevice9*)iDirect3DDevice9, width, height, format, - multiSample, multiSampleQuality, discard, &iDirect3DSurface9, (HANDLE*)sharedHandle); - - setPointer(env, surface, "setIDirect3DSurface9", (jlong)iDirect3DSurface9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nCreateIndexBuffer - * Signature: (IJIILorg/lwjgl/d3d/IDirect3DIndexBuffer9;J)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nCreateIndexBuffer - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint length, jlong usage, jint format, jint pool, jobject indexBuffer, jlong shareHandle) { - - IDirect3DIndexBuffer9 *iDirect3DIndexBuffer9; - - HRESULT hResult = IDirect3DDevice9_CreateIndexBuffer((IDirect3DDevice9*)iDirect3DDevice9, length, usage, format, - pool, &iDirect3DIndexBuffer9, (HANDLE*)shareHandle); - - setPointer(env, indexBuffer, "setIDirect3DIndexBuffer9", (jlong)iDirect3DIndexBuffer9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nCreateOffscreenPlainSurface - * Signature: (IIIJLorg/lwjgl/d3d/IDirect3DSurface9;J)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nCreateOffscreenPlainSurface - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint width, jint height, jint format, jlong pool, jobject surface, jlong sharedHandle) { - - IDirect3DSurface9 *iDirect3DSurface9; - - HRESULT hResult = IDirect3DDevice9_CreateOffscreenPlainSurface((IDirect3DDevice9*)iDirect3DDevice9, width, height, format, - pool, &iDirect3DSurface9, (HANDLE*)sharedHandle); - - setPointer(env, surface, "setIDirect3DSurface9", (jlong)iDirect3DSurface9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nCreatePixelShader - * Signature: (JLorg/lwjgl/d3d/IDirect3DPixelShader9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nCreatePixelShader - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jlong function, jobject shader) { - - IDirect3DPixelShader9 *iDirect3DPixelShader9; - - HRESULT hResult = IDirect3DDevice9_CreatePixelShader((IDirect3DDevice9*)iDirect3DDevice9, (const DWORD*)function, &iDirect3DPixelShader9); - - setPointer(env, shader, "setIDirect3DPixelShader9", (jlong)iDirect3DPixelShader9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nCreateQuery - * Signature: (ILorg/lwjgl/d3d/IDirect3DQuery9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nCreateQuery - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint type, jobject query) { - - IDirect3DQuery9 *iDirect3DQuery9; - - HRESULT hResult = IDirect3DDevice9_CreateQuery((IDirect3DDevice9*)iDirect3DDevice9, type, &iDirect3DQuery9); - - setPointer(env, query, "setIDirect3DQuery9", (jlong)iDirect3DQuery9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nCreateRenderTarget - * Signature: (IIIIJZLorg/lwjgl/d3d/IDirect3DSurface9;J)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nCreateRenderTarget - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint width, jint height, jint format, jint multiSample, jlong multiSampleQuality, jboolean lockable, jobject surface, jlong sharedHandle) { - - IDirect3DSurface9 *iDirect3DSurface9; - - HRESULT hResult = IDirect3DDevice9_CreateRenderTarget((IDirect3DDevice9*)iDirect3DDevice9, width, height, format, - multiSample, multiSampleQuality, lockable, &iDirect3DSurface9, (HANDLE*)sharedHandle); - - setPointer(env, surface, "setIDirect3DSurface9", (jlong)iDirect3DSurface9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nCreateStateBlock - * Signature: (ILorg/lwjgl/d3d/IDirect3DStateBlock9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nCreateStateBlock - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint type, jobject stateBlock) { - - IDirect3DStateBlock9 *iDirect3DStateBlock9; - - HRESULT hResult = IDirect3DDevice9_CreateStateBlock((IDirect3DDevice9*)iDirect3DDevice9, type, &iDirect3DStateBlock9); - - setPointer(env, stateBlock, "setIDirect3DStateBlock9", (jlong)iDirect3DStateBlock9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nCreateTexture - * Signature: (IIIJIILorg/lwjgl/d3d/IDirect3DTexture9;J)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nCreateTexture - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint width, jint height, jint levels, jlong usage, jint format, jint pool, jobject texture, jlong sharedHandle) { - - IDirect3DTexture9 *iDirect3DTexture9; - - HRESULT hResult = IDirect3DDevice9_CreateTexture((IDirect3DDevice9*)iDirect3DDevice9, width, height, levels, - usage, format, pool, &iDirect3DTexture9, (HANDLE*)sharedHandle); - - setPointer(env, texture, "setIDirect3DTexture9", (jlong)iDirect3DTexture9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nCreateVertexBuffer - * Signature: (IJJILorg/lwjgl/d3d/IDirect3DVertexBuffer9;J)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nCreateVertexBuffer - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint length, jint usage, jint FVF, jint pool, jobject vertexBuffer, jlong sharedHandle) { - - IDirect3DVertexBuffer9 *iDirect3DVertexBuffer9; - - HRESULT hResult = IDirect3DDevice9_CreateVertexBuffer((IDirect3DDevice9*)iDirect3DDevice9, length, usage, FVF, - pool, &iDirect3DVertexBuffer9, (HANDLE*)sharedHandle); - - setPointer(env, vertexBuffer, "setIDirect3DVertexBuffer9", (jlong)iDirect3DVertexBuffer9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nCreateVertexDeclaration - * Signature: (Lorg/lwjgl/d3d/D3DVertexElement9;Lorg/lwjgl/d3d/IDirect3DVertexDeclaration9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nCreateVertexDeclaration - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jobject vertexElementsBuffer, jobject decl) { - - IDirect3DVertexDeclaration9 *iDirect3DVertexDeclaration9; - D3DVERTEXELEMENT9* vertexElements = (D3DVERTEXELEMENT9*)((*env)->GetDirectBufferAddress(env, vertexElementsBuffer)); - - HRESULT hResult = IDirect3DDevice9_CreateVertexDeclaration((IDirect3DDevice9*)iDirect3DDevice9, vertexElements, - &iDirect3DVertexDeclaration9); - - setPointer(env, decl, "setIDirect3DVertexDeclaration9", (jlong)iDirect3DVertexDeclaration9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nCreateVertexShader - * Signature: (JLorg/lwjgl/d3d/IDirect3DVertexShader9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nCreateVertexShader - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jlong function, jobject shader) { - - IDirect3DVertexShader9 *iDirect3DVertexShader9; - - HRESULT hResult = IDirect3DDevice9_CreateVertexShader((IDirect3DDevice9*)iDirect3DDevice9, (DWORD*)function, - &iDirect3DVertexShader9); - - setPointer(env, shader, "setIDirect3DVertexShader9", (jlong)iDirect3DVertexShader9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nCreateVolumeTexture - * Signature: (IIIIJIILorg/lwjgl/d3d/IDirect3DVolumeTexture9;J)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nCreateVolumeTexture - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint width, jint height, jint depth, jint levels, jlong usage, jint format, jint pool, jobject volumeTexture, jlong sharedHandle) { - - IDirect3DVolumeTexture9 *iDirect3DVolumeTexture9; - - HRESULT hResult = IDirect3DDevice9_CreateVolumeTexture((IDirect3DDevice9*)iDirect3DDevice9, width, height, depth, - levels, usage, format, pool, &iDirect3DVolumeTexture9, (HANDLE*)sharedHandle); - - setPointer(env, volumeTexture, "setIDirect3DVolumeTexture9", (jlong)iDirect3DVolumeTexture9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nDeletePatch - * Signature: (I)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nDeletePatch - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint handle) { - - return IDirect3DDevice9_DeletePatch((IDirect3DDevice9*)iDirect3DDevice9, handle); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nDrawIndexedPrimitive - * Signature: (IIIIII)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nDrawIndexedPrimitive - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint type, jint baseVertexIndex, jint minIndex, jint numVertices, jint startIndex, jint primitiveCount) { - - return IDirect3DDevice9_DrawIndexedPrimitive((IDirect3DDevice9*)iDirect3DDevice9, type, baseVertexIndex, minIndex, - numVertices, startIndex, primitiveCount); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nDrawIndexedPrimitiveUP - * Signature: (IIIILjava/nio/ByteBuffer;ILjava/nio/ByteBuffer;I)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nDrawIndexedPrimitiveUP - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint primitiveType, jint minVertexIndex, jint numVertices, jint primitiveCount, jobject indexDataBuffer, jint indexDataFormat, jobject vertexStreamZeroDataBuffer, jint vertexStreamZeroStride) { - - CONST void *indexData = (CONST void *)((*env)->GetDirectBufferAddress(env, indexDataBuffer)); - CONST void *vertexStreamZeroData = (CONST void *)((*env)->GetDirectBufferAddress(env, vertexStreamZeroDataBuffer)); - - return IDirect3DDevice9_DrawIndexedPrimitiveUP((IDirect3DDevice9*)iDirect3DDevice9, primitiveType, minVertexIndex, - numVertices, primitiveCount, indexData, indexDataFormat, vertexStreamZeroData, vertexStreamZeroStride); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nDrawPrimitive - * Signature: (III)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nDrawPrimitive - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint primitiveType, jint startVertex, jint primitiveCount) { - - return IDirect3DDevice9_DrawPrimitive((IDirect3DDevice9*)iDirect3DDevice9, primitiveType, startVertex, primitiveCount); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nDrawPrimitiveUP - * Signature: (IILjava/nio/ByteBuffer;I)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nDrawPrimitiveUP - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint primitiveType, jint primitiveCount, jobject vertexStreamZeroData, jint vertexStreamZeroStride) { - - void* vertex = (void*)((*env)->GetDirectBufferAddress(env, vertexStreamZeroData)); - - return IDirect3DDevice9_DrawPrimitiveUP((IDirect3DDevice9*)iDirect3DDevice9, primitiveType, primitiveCount, vertex, vertexStreamZeroStride); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nDrawRectPatch - * Signature: (ILjava/nio/FloatBuffer;Lorg/lwjgl/d3d/D3DRectPatchInfo;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nDrawRectPatch - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint handle, jobject numSegsBuffer, jobject rectPatchInfoBuffer) { - - const float *numSegs = (const float *)((*env)->GetDirectBufferAddress(env, numSegsBuffer)); - const D3DRECTPATCH_INFO *rectPatchInfo = (const D3DRECTPATCH_INFO *)((*env)->GetDirectBufferAddress(env, rectPatchInfoBuffer)); - - return IDirect3DDevice9_DrawRectPatch((IDirect3DDevice9*)iDirect3DDevice9, handle, numSegs, rectPatchInfo); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nDrawTriPatch - * Signature: (ILjava/nio/FloatBuffer;Lorg/lwjgl/d3d/D3DTriPatchInfo;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nDrawTriPatch - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint handle, jobject numSegsBuffer, jobject triPatchInfoBuffer) { - - const float *numSegs = (const float *)((*env)->GetDirectBufferAddress(env, numSegsBuffer)); - const D3DTRIPATCH_INFO *triPatchInfo = (const D3DTRIPATCH_INFO *)((*env)->GetDirectBufferAddress(env, triPatchInfoBuffer)); - - return IDirect3DDevice9_DrawTriPatch((IDirect3DDevice9*)iDirect3DDevice9, handle, numSegs, triPatchInfo); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nEndScene - * Signature: ()J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nEndScene - (JNIEnv *env, jobject object, jlong iDirect3DDevice9) { - - return IDirect3DDevice9_EndScene((IDirect3DDevice9*)iDirect3DDevice9); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nEndStateBlock - * Signature: (Lorg/lwjgl/d3d/IDirect3DStateBlock9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nEndStateBlock - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jobject stateBlock) { - - IDirect3DStateBlock9 *iDirect3DStateBlock9; - - HRESULT hResult = IDirect3DDevice9_EndStateBlock((IDirect3DDevice9*)iDirect3DDevice9, &iDirect3DStateBlock9); - - setPointer(env, stateBlock, "setIDirect3DStateBlock9", (jlong)iDirect3DStateBlock9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nEvictManagedResources - * Signature: ()J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nEvictManagedResources - (JNIEnv *env, jobject object, jlong iDirect3DDevice9) { - - return IDirect3DDevice9_EvictManagedResources((IDirect3DDevice9*)iDirect3DDevice9); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetAvailableTextureMem - * Signature: ()I - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetAvailableTextureMem - (JNIEnv *env, jobject object, jlong iDirect3DDevice9) { - - return IDirect3DDevice9_GetAvailableTextureMem((IDirect3DDevice9*)iDirect3DDevice9); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetBackBuffer - * Signature: (IIILorg/lwjgl/d3d/IDirect3DSurface9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetBackBuffer - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint swapChain, jint backBuffer, jint type, jobject backBufferSurface) { - - IDirect3DSurface9 *iDirect3DSurface9; - - HRESULT hResult = IDirect3DDevice9_GetBackBuffer((IDirect3DDevice9*)iDirect3DDevice9, swapChain, backBuffer, type, - &iDirect3DSurface9); - - setPointer(env, backBufferSurface, "setIDirect3DSurface9", (jlong)iDirect3DSurface9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetClipPlane - * Signature: (JLjava/nio/FloatBuffer;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetClipPlane - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jlong index, jobject planeBuffer) { - - float* plane = (float*)((*env)->GetDirectBufferAddress(env, planeBuffer)); - - return IDirect3DDevice9_GetClipPlane((IDirect3DDevice9*)iDirect3DDevice9, index, plane); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetClipStatus - * Signature: (Lorg/lwjgl/d3d/D3DClipStatus9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetClipStatus - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jobject clipStatusBuffer) { - - D3DCLIPSTATUS9* planeBuffer = (D3DCLIPSTATUS9*)((*env)->GetDirectBufferAddress(env, clipStatusBuffer)); - - return IDirect3DDevice9_GetClipStatus((IDirect3DDevice9*)iDirect3DDevice9, planeBuffer); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetCreationParameters - * Signature: (Lorg/lwjgl/d3d/D3DDeviceCreationParameters;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetCreationParameters - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jobject parametersBuffer) { - - D3DDEVICE_CREATION_PARAMETERS* parameters = (D3DDEVICE_CREATION_PARAMETERS*)((*env)->GetDirectBufferAddress(env, parametersBuffer)); - - return IDirect3DDevice9_GetCreationParameters((IDirect3DDevice9*)iDirect3DDevice9, parameters); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetCurrentTexturePalette - * Signature: (Ljava/nio/IntBuffer;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetCurrentTexturePalette - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jobject paletteNumberBuffer) { - - UINT* paletteNumber = (UINT*)((*env)->GetDirectBufferAddress(env, paletteNumberBuffer)); - - return IDirect3DDevice9_GetCurrentTexturePalette((IDirect3DDevice9*)iDirect3DDevice9, paletteNumber); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetDepthStencilSurface - * Signature: (Lorg/lwjgl/d3d/IDirect3DSurface9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetDepthStencilSurface - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jobject zStencilSurface) { - - IDirect3DSurface9 *iDirect3DSurface9; - - HRESULT hResult = IDirect3DDevice9_GetDepthStencilSurface((IDirect3DDevice9*)iDirect3DDevice9, &iDirect3DSurface9); - - setPointer(env, zStencilSurface, "setIDirect3DSurface9", (jlong)iDirect3DSurface9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetDeviceCaps - * Signature: (Lorg/lwjgl/d3d/D3DCaps9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetDeviceCaps - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jobject capsBuffer) { - - D3DCAPS9* caps = (D3DCAPS9*)((*env)->GetDirectBufferAddress(env, capsBuffer)); - - return IDirect3DDevice9_GetDeviceCaps((IDirect3DDevice9*)iDirect3DDevice9, caps); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetDirect3D - * Signature: (Lorg/lwjgl/d3d/IDirect3D9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetDirect3D - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jobject D3D9) { - - IDirect3D9 *iDirect3D9; - - HRESULT hResult = IDirect3DDevice9_GetDirect3D((IDirect3DDevice9*)iDirect3DDevice9, &iDirect3D9); - - setPointer(env, D3D9, "setIDirect3D9", (jlong)iDirect3D9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetDisplayMode - * Signature: (ILorg/lwjgl/d3d/D3DDisplaymode;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetDisplayMode - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint swapChain, jobject modeBuffer) { - - D3DDISPLAYMODE* mode = (D3DDISPLAYMODE*)((*env)->GetDirectBufferAddress(env, modeBuffer)); - - return IDirect3DDevice9_GetDisplayMode((IDirect3DDevice9*)iDirect3DDevice9, swapChain, mode); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetFrontBufferData - * Signature: (ILorg/lwjgl/d3d/IDirect3DSurface9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetFrontBufferData - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint swapChain, jlong destSurface) { - - return IDirect3DDevice9_GetFrontBufferData((IDirect3DDevice9*)iDirect3DDevice9, swapChain, - (IDirect3DSurface9 *)destSurface); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetFVF - * Signature: (Ljava/nio/LongBuffer;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetFVF - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jobject FVFBuffer) { - - DWORD* FVF = (DWORD*)((*env)->GetDirectBufferAddress(env, FVFBuffer)); - - return IDirect3DDevice9_GetFVF((IDirect3DDevice9*)iDirect3DDevice9, FVF); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetGammaRamp - * Signature: (ILorg/lwjgl/d3d/D3DGammaRamp;)J - */ -JNIEXPORT void JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetGammaRamp - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint swapChain, jobject rampBuffer) { - - D3DGAMMARAMP* ramp = (D3DGAMMARAMP*)((*env)->GetDirectBufferAddress(env, rampBuffer)); - - IDirect3DDevice9_GetGammaRamp((IDirect3DDevice9*)iDirect3DDevice9, swapChain, ramp); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetIndices - * Signature: (Lorg/lwjgl/d3d/IDirect3DIndexBuffer9;Ljava/nio/IntBuffer;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetIndices - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jobject indexData) { - - IDirect3DIndexBuffer9 *iDirect3DIndexBuffer9; - - HRESULT hResult = IDirect3DDevice9_GetIndices((IDirect3DDevice9*)iDirect3DDevice9, &iDirect3DIndexBuffer9); - - setPointer(env, indexData, "setIDirect3DIndexBuffer9", (jlong)iDirect3DIndexBuffer9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetLight - * Signature: (JLorg/lwjgl/d3d/D3DLight9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetLight - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jlong index, jobject lightBuffer) { - - D3DLIGHT9* light = (D3DLIGHT9*)((*env)->GetDirectBufferAddress(env, lightBuffer)); - - return IDirect3DDevice9_GetLight((IDirect3DDevice9*)iDirect3DDevice9, index, light); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetLightEnable - * Signature: (JZ)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetLightEnable - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jlong index, jobject enableBuffer) { - - BOOL* enable = (BOOL*)((*env)->GetDirectBufferAddress(env, enableBuffer)); - - return IDirect3DDevice9_GetLightEnable((IDirect3DDevice9*)iDirect3DDevice9, index, enable); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetMaterial - * Signature: (Lorg/lwjgl/d3d/D3DMaterial9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetMaterial - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jobject materialBuffer) { - - D3DMATERIAL9* material = (D3DMATERIAL9*)((*env)->GetDirectBufferAddress(env, materialBuffer)); - - return IDirect3DDevice9_GetMaterial((IDirect3DDevice9*)iDirect3DDevice9, material); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetNPatchMode - * Signature: ()F - */ -JNIEXPORT jfloat JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetNPatchMode - (JNIEnv *env, jobject object, jlong iDirect3DDevice9) { - - return IDirect3DDevice9_GetNPatchMode((IDirect3DDevice9*)iDirect3DDevice9); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetNumberOfSwapChains - * Signature: ()I - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetNumberOfSwapChains - (JNIEnv *env, jobject object, jlong iDirect3DDevice9) { - - return IDirect3DDevice9_GetNumberOfSwapChains((IDirect3DDevice9*)iDirect3DDevice9); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetPaletteEntries - * Signature: (ILorg/lwjgl/d3d/PaletteEntry;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetPaletteEntries - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint paletteNumber, jobject entriesBuffer) { - - PALETTEENTRY* entries = (PALETTEENTRY*)((*env)->GetDirectBufferAddress(env, entriesBuffer)); - - return IDirect3DDevice9_GetPaletteEntries((IDirect3DDevice9*)iDirect3DDevice9, paletteNumber, entries); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetPixelShader - * Signature: (Lorg/lwjgl/d3d/IDirect3DPixelShader9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetPixelShader - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jobject shader) { - - IDirect3DPixelShader9 *iDirect3DPixelShader9; - - HRESULT hResult = IDirect3DDevice9_GetPixelShader((IDirect3DDevice9*)iDirect3DDevice9, &iDirect3DPixelShader9); - - setPointer(env, shader, "setIDirect3DPixelShader9", (jlong)iDirect3DPixelShader9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetPixelShaderConstantB - * Signature: (IZI)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetPixelShaderConstantB - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint startRegister, jobject constantDataBuffer, jint boolCount) { - - BOOL* constantData = (BOOL*)((*env)->GetDirectBufferAddress(env, constantDataBuffer)); - - return IDirect3DDevice9_GetPixelShaderConstantB((IDirect3DDevice9*)iDirect3DDevice9, startRegister, constantData, - boolCount); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetPixelShaderConstantF - * Signature: (ILjava/nio/FloatBuffer;I)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetPixelShaderConstantF - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint startRegister, jobject constantDataBuffer, jint vector4fCount) { - - float* constantData = (float*)((*env)->GetDirectBufferAddress(env, constantDataBuffer)); - - return IDirect3DDevice9_GetPixelShaderConstantF((IDirect3DDevice9*)iDirect3DDevice9, startRegister, constantData, - vector4fCount); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetPixelShaderConstantI - * Signature: (ILjava/nio/IntBuffer;I)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetPixelShaderConstantI - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint startRegister, jobject constantDataBuffer, jint vector4iCount) { - - int* constantData = (int*)((*env)->GetDirectBufferAddress(env, constantDataBuffer)); - - return IDirect3DDevice9_GetPixelShaderConstantI((IDirect3DDevice9*)iDirect3DDevice9, startRegister, constantData, - vector4iCount); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetRasterStatus - * Signature: (ILorg/lwjgl/d3d/D3DRasterStatus;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetRasterStatus - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint swapChain, jobject rasterStatusBuffer) { - - D3DRASTER_STATUS* rasterStatus = (D3DRASTER_STATUS*)((*env)->GetDirectBufferAddress(env, rasterStatusBuffer)); - - return IDirect3DDevice9_GetRasterStatus((IDirect3DDevice9*)iDirect3DDevice9, swapChain, rasterStatus); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetRenderState - * Signature: (IJ)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetRenderState - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint state, jobject valueBuffer) { - - DWORD* value = (DWORD*)((*env)->GetDirectBufferAddress(env, valueBuffer)); - - return IDirect3DDevice9_GetRenderState((IDirect3DDevice9*)iDirect3DDevice9, state, value); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetRenderTarget - * Signature: (JLorg/lwjgl/d3d/IDirect3DSurface9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetRenderTarget - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jlong renderTargetIndex, jobject renderTarget) { - - IDirect3DSurface9 *iDirect3DSurface9; - - HRESULT hResult = IDirect3DDevice9_GetRenderTarget((IDirect3DDevice9*)iDirect3DDevice9, renderTargetIndex, - &iDirect3DSurface9); - - setPointer(env, renderTarget, "setIDirect3DSurface9", (jlong)iDirect3DSurface9); - - return hResult; -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetRenderTargetData - * Signature: (Lorg/lwjgl/d3d/IDirect3DSurface9;Lorg/lwjgl/d3d/IDirect3DSurface9;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetRenderTargetData - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jlong renderTarget, jlong destSurface) { - - return IDirect3DDevice9_GetRenderTargetData((IDirect3DDevice9*)iDirect3DDevice9, (IDirect3DSurface9 *)renderTarget, - (IDirect3DSurface9 *)destSurface); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetSamplerState - * Signature: (JILjava/nio/LongBuffer;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetSamplerState - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jlong sampler, jint type, jobject valueBuffer) { - - DWORD* value = (DWORD*)((*env)->GetDirectBufferAddress(env, valueBuffer)); - - return IDirect3DDevice9_GetSamplerState((IDirect3DDevice9*)iDirect3DDevice9, sampler, type, value); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetScissorRect - * Signature: (Lorg/lwjgl/d3d/Rectangle;)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetScissorRect - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jobject rectBuffer) { - - RECT* rect = (RECT*)((*env)->GetDirectBufferAddress(env, rectBuffer)); - - return IDirect3DDevice9_GetScissorRect((IDirect3DDevice9*)iDirect3DDevice9, rect); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetSoftwareVertexProcessing - * Signature: ()Z - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetSoftwareVertexProcessing - (JNIEnv *env, jobject object, jlong iDirect3DDevice9) { - - return IDirect3DDevice9_GetSoftwareVertexProcessing((IDirect3DDevice9*)iDirect3DDevice9); -} - -/* - * Class: org_lwjgl_d3d_IDirect3DDevice9 - * Method: nGetStreamSource - * Signature: (ILorg/lwjgl/d3d/IDirect3DVertexBuffer9;II)J - */ -JNIEXPORT jlong JNICALL Java_org_lwjgl_d3d_IDirect3DDevice9_nGetStreamSource - (JNIEnv *env, jobject object, jlong iDirect3DDevice9, jint streamNumber, jobject streamData, jobject offsetInBytesBuffer, jobject strideBuffer) { - - IDirect3DVertexBuffer9 *iDirect3DVertexBuffer9; - UINT* offsetInBytes = (UINT*)((*env)->GetDirectBufferAddress(env, offsetInBytesBuffer)); - UINT* stride = (UINT*)((*env)->GetDirectBufferAddress(env, strideBuffer)); - - HRESULT hResult = IDirect3DDevice9_GetStreamSource((IDirect3DDevice9*)iD... [truncated message content] |
From: <ma...@us...> - 2007-10-20 15:57:47
|
Revision: 2901 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=2901&view=rev Author: matzon Date: 2007-10-20 08:57:41 -0700 (Sat, 20 Oct 2007) Log Message: ----------- tagging dx implementation before removal Added Paths: ----------- tags/lwjgl-directx/ Copied: tags/lwjgl-directx (from rev 2900, trunk) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |