Commit graph

315 commits

Author SHA1 Message Date
Brian Matzon
69f24e8f23 output capture devices 2007-04-19 22:44:07 +00:00
Brian Matzon
2481ce4356 updated to ALC10 instead of ALC 2007-04-19 22:23:04 +00:00
Brian Matzon
9d67fe978c Capture test for OpenAL 1.1 2007-04-19 22:22:18 +00:00
Elias Naur
7c6511cf66 Added support for non-direct buffers for all functions that doesn't cache the buffer address at the native side (e.g. glVertexPointer). Reasons:
1. We can now support calls like "glLight(..., ..., FloatBuffer.wrap(new float[] {...}));" without worrying about running out of direct memory heap, 
since both the FloatBuffer and the array are allocated on the java heap. Future JVMs with stack allocation support could improve this even further.
2. We avoid getting in the way of users that doesn't (yet) know why direct buffers are important.

Obviously, we'd like direct support for arrays, but non-direct buffers are a nice compromise that avoids the API bloat that results when almost all 
functions gain an overloaded versions that take arrays instead of buffers.

Notes:

1. Non-direct buffer support should not affect the performance in the direct buffer case, since the non-direct buffer code path is only activated 
when the isDirect() check fails, and we were already checking isDirect() for sanity checking.
2. When using non-direct buffers, the buffer contents (remaining() bytes) are copied to a resizable ThreadLocal cached direct buffer (which is 
resized as needed) and used instead of the non-direct buffer. Thus, performance of non-direct buffers is lower than direct buffers.
2007-04-11 17:30:13 +00:00
Brian Matzon
c880c689ff fixed test to use -1 in freq 2007-02-04 21:46:29 +00:00
Brian Matzon
e8d032973f updated streams 2007-01-23 19:55:46 +00:00
Brian Matzon
00db5fcb85 added Display.create/destroy. Fixes an error on mac, since OpenGL has to be initialized before creating ILUT 2007-01-07 20:41:45 +00:00
Brian Matzon
de0a724da7 use precalculated widths and heights, else we crash in cursor constructor because of buffer underflow 2007-01-02 19:02:25 +00:00
Elias Naur
ede23fc9a3 HWCursorTest: Cap cursor size 2007-01-02 11:12:37 +00:00
Elias Naur
861421e16c Fix HWCursorTest 2007-01-02 11:09:05 +00:00
Elias Naur
175ac13445 Fix VBO tests and bump Sys native JNI library version 2006-12-20 19:24:25 +00:00
Elias Naur
63532ca647 Make sure that the cursor position doesn't jump when switching grab mode 2006-11-24 14:53:01 +00:00
Elias Naur
993885b9de Added AWTInputAdapter testing to applet/OpenGL.java 2006-11-20 08:39:22 +00:00
Elias Naur
34e5ce2080 Twekaed tests 2006-11-20 08:04:56 +00:00
Elias Naur
0e10718b16 AWTInputAdapter.destroy() now destroys the Keyboard and Mouse to mimic the behaviour of Display.destroy() more closely. 2006-11-19 16:24:18 +00:00
Kevin Glass
007fe5999e Updated Controllers event queue to make use of the new JInput
event queue, including adding getEventNanoseconds() to the 
Controllers interface. TestControllers against Logitech pad on
Win32 confirms that no behaviour changes are evident.
2006-11-17 08:08:21 +00:00
Elias Naur
3a12b4bdd2 Remove AWTInputAdapter.update() and let users poll() Mouse and Keyboard directly 2006-11-10 13:52:18 +00:00
Elias Naur
17e4a755de Don't use threads to repaint in test.applet.* tests 2006-11-09 11:10:59 +00:00
Elias Naur
3674d843c2 Added org.lwjgl.opengl.AWTInputAdapter which enabled use of Mouse and
Keyboard with AWTGLCanvases. Programs can now avoid implementing AWT input processing and access the mouse grabbing features from both Display and AWTGLCanvas. See org.lwjgl.test.opengl.awt.AWTInputAdapterTest for an example.

Note: This commit is the linux and generic AWT imlementation and can still
change a lot while implementing windows and mac os x.
2006-10-26 20:19:40 +00:00
Elias Naur
1c18537f1e AWTGears: Set background of window to black to avoid some resizing artifacts 2006-10-20 12:55:01 +00:00
Elias Naur
5d5dde0aed Remove redundant resizing of AWT canvases in AWT tests 2006-10-20 12:36:51 +00:00
Elias Naur
12d445c7ec Added nicer resizing to AWT tests 2006-10-20 12:32:33 +00:00
Elias Naur
d9e94b2d54 Don't repaint() from a separate thread in AWT demos. This results in a smoother rendering. 2006-10-20 10:42:43 +00:00
Elias Naur
dedfaea500 Windows: Don't use a dummy window (HDC) when finding a pixel format but use the actual window directly. This will avoid cases where the pixel format index for the dummy window's HDC wasn't valid for the actual window's HDC. It also avoid unnecessary complexity.
Fix FullScreenWindowedTest to use the Display's current BPP to avoid 24/16 bpp weirdness
2006-10-11 13:48:48 +00:00
Kevin Glass
8ac762037f Update controllers test to not poll() the controllers from multiple threads. 2006-08-21 17:25:49 +00:00
Elias Naur
78006b3409 Make sure the mode member is never null in FullScreenWindowedTest 2006-08-01 10:36:13 +00:00
Elias Naur
050638760e Windows: Don't use a non-portable anonymous struct in contex.h 2006-07-15 20:25:56 +00:00
Elias Naur
d9afe6b784 Windows: Moved NativeSysImplementation.java to WindowsSysImplementation.java and moved some native code to java. 2006-07-15 19:45:36 +00:00
Elias Naur
79a8e1264c Fixed SysTest.java 2006-07-15 18:36:46 +00:00
Elias Naur
d859fdcca6 Added a Controllers applet test 2006-07-14 08:32:01 +00:00
Elias Naur
c208833e25 Windows: Moved gamma and display modes settings and more boolean state to java side. 2006-07-08 21:57:20 +00:00
Brian Matzon
3b64037940 cleaned up imports 2006-07-03 23:23:49 +00:00
Elias Naur
4eb40bfe6a Fixed AppletTest 2006-07-03 11:36:23 +00:00
Elias Naur
1efa8258d1 Removed multiple library names support from Sys.java, it is not needed anymore 2006-07-03 10:28:32 +00:00
Elias Naur
85ca7c65bb Made sure no dependency from core LWJGL to LWJGLInstaller exists 2006-07-03 10:21:44 +00:00
Brian Matzon
70fe495e75 preliminary applet support 2006-07-02 21:51:53 +00:00
Elias Naur
ecb7e3bb4e Fixed KeyboardTest 2006-06-30 23:37:12 +00:00
Brian Matzon
d20c118cd6 fixed offset/length to use buffer properties
keep reference to buffers until free'd
added FMUSIC_LoadSongEx test
2006-06-23 08:14:49 +00:00
Elias Naur
8d9d7f350e Removed isStateKeySet from KeyboardTest 2006-06-15 13:41:26 +00:00
Brian Matzon
8a3bee6b1c applied patch to move ID tag 2006-03-23 19:32:21 +00:00
Brian Matzon
ac3a70926b support for ALC_ENUMERATION_EXT using LWJGL specific method: AL.getImplementations 2006-02-02 22:34:28 +00:00
Caspian Rychlik-Prince
08ca3d8586 Cleanup of unused imports 2006-01-16 21:06:00 +00:00
Brian Matzon
1bb8bc04d7 dont load XPM files - uses embedded logo 2005-10-21 18:54:00 +00:00
Brian Matzon
0b6885202b dont double create AL 2005-10-21 18:51:20 +00:00
Brian Matzon
8904f18bae applied DarkProphets patch for better error handling and more types 2005-09-07 16:06:06 +00:00
Brian Matzon
b2713156b8 fixed XPMFile to use InputStream load method too 2005-08-18 13:55:10 +00:00
Kevin Glass
9c40ee58b1 LWJGL icon used as window icon in test. 2005-07-16 10:37:00 +00:00
Brian Matzon
6bfd01502b way simple icon test 2005-07-11 17:05:11 +00:00
Kevin Glass
0ae6c420ef Initial controller input checkin. Source for the wrapper round JInput including the test tool. 2005-06-29 20:11:15 +00:00
Ioannis Tsakpinis
e77c1807ce Fixed mode parameter 2005-06-07 10:33:17 +00:00