Commit graph

2332 commits

Author SHA1 Message Date
Brian Matzon
1d920fb4ef updated to ALC10 instead of ALC 2007-04-19 22:26:19 +00:00
Brian Matzon
d16d77f30d updated to ALC10 instead of ALC 2007-04-19 22:25:47 +00:00
Brian Matzon
a6ce837564 openal 1.1 2007-04-19 22:25:13 +00:00
Brian Matzon
23ad78416f exposing context and device
updated to ALC10 instead of ALC
removed getImplementations - alcGetString now works as "expected"
2007-04-19 22:24:36 +00:00
Brian Matzon
3b5064f229 updated to ALC10 instead of ALC 2007-04-19 22:23:40 +00:00
Brian Matzon
54eefcb876 exposing context and device 2007-04-19 22:23:20 +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
Brian Matzon
8ad8eb57b4 openal 1.1 2007-04-19 22:21:52 +00:00
Brian Matzon
80bd5b9e03 AL_SOURCE_TYPE changed value ... 2007-04-19 22:21:37 +00:00
Brian Matzon
4152deb7c4 using NewStringNativeWithLength 2007-04-19 22:21:04 +00:00
Brian Matzon
3630ebd6c2 using NewStringNativeWithLength 2007-04-19 22:20:36 +00:00
Brian Matzon
844ae6dce2 openal 1.1
exposing device and context
2007-04-19 22:20:14 +00:00
Brian Matzon
6889c876f6 using NewStringNativeWithLength 2007-04-19 22:18:16 +00:00
Elias Naur
e6b9cb1a90 Cut VBO/PBO sanity checks from two to one glGetInteger call by exploiting GL enum value aliasing (once again inspired by MatthiasM). Additionally, support PBO calls added in OpenGL 2.1. 2007-04-19 07:42:01 +00:00
Elias Naur
d9373a798a Move null parameter checks from check classes to the generated classes, since calculateImageSize assumes the buffer being non-null 2007-04-15 19:43:35 +00:00
Elias Naur
ca35f3b2b4 Don't add border when checking image sizes 2007-04-15 19:33:03 +00:00
Brian Matzon
5d15006837 1.1 version string 2007-04-11 20:32:12 +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
Elias Naur
5a2c33423a Moved null check from generated code to BufferChecks and removed unused buffer checks 2007-04-11 16:13:05 +00:00
Brian Matzon
2b8f56021f 1.0.1 version string 2007-04-07 19:10:22 +00:00
Elias Naur
81564102c3 Removed generated files from version control - all platforms have support for the java 1.5 apt tool 2007-04-03 10:06:12 +00:00
Elias Naur
fe196168ea Updated generated files 2007-04-03 08:21:46 +00:00
Elias Naur
7c1b930ab4 Fixed typo in EXT_gpu_program_parameters 2007-04-03 08:16:45 +00:00
Elias Naur
3899e6828f Windows: Correct testing of wParam when a WM_SYSCOMMAND is received 2007-03-30 19:35:37 +00:00
Elias Naur
176a617393 Windows: Native compile fixes 2007-03-30 19:00:59 +00:00
Elias Naur
360a9a0827 WindowsRegistry: Make sure the native library is loaded by calling Sys.initialize() 2007-03-22 14:05:41 +00:00
Elias Naur
55a889d053 Use jawt_md.h instead of jawt.h since that is apparently the official way of using JAWT (from the example in jawt.h) and is required for lwjgl to compile with the ibm 1.5 jdk 2007-03-13 08:18:00 +00:00
Elias Naur
3c44d0c7be Added error checking to getBooleanProperty 2007-03-09 14:34:27 +00:00
Elias Naur
eeb711239e Added error checking to NewStringNative 2007-03-09 14:28:52 +00:00
Elias Naur
d6207572c6 Added a Pbuffer constructor that omits the RenderTexture parameter, and added a note that FBOs should be used instead, if available. Render-to-texture pbuffers can only be available on Windows platforms and is thus not portable. 2007-02-24 18:41:41 +00:00
Elias Naur
4bf4a385f3 Linux: When creating a window don't loop waiting for the MapNotify event. Instead, make sure we don't immediately go from fullscreen to minimized by checking if the window has been focused at least once before minimizing (and resetting display mode). 2007-02-23 10:14:18 +00:00
Elias Naur
a5c8a3d6af Linux: Don't call XSetInputFocus when creating a window. XSetInputFocus can fail if the window is not mapped when calling it, and it seems that it's rude to call XSetInputFocus according to the ICCCM when the application doesn't already have the focus in one of its subwindows. 2007-02-23 08:31:59 +00:00
Elias Naur
12eb552aba Linux: Don't use XClearWindow to clear the window, but rely on the OpenGL clearing instead. Also, remove redundant attributes in XCreateWindow 2007-02-23 08:21:02 +00:00
Ioannis Tsakpinis
10695d0b2d Added NV_geometry_shader4 2007-02-21 13:44:33 +00:00
Elias Naur
dd41c22da7 Windows: Don't exclude PFD_GENERIC_ACCELERATED formats when selecting pixel formats. Hopefully this will enable LWJGL to use the directx emulated opengl implementation on vista 2007-02-17 09:49:44 +00:00
Elias Naur
56178d97fd Make the rest of LWJGL thread safe. No attempt have been done to make the locking minimal. Instead, one global lock is shared by Display, Mouse, Keyboard and Cursor. The lock surrounds all public methods. 2007-02-12 12:18:26 +00:00
Brian Matzon
c880c689ff fixed test to use -1 in freq 2007-02-04 21:46:29 +00:00
Brian Matzon
79a8cf82bd 1.0 version string 2007-02-03 12:22:25 +00:00
Elias Naur
763d9cce7c Linux: Make sure the first Mouse.poll() return correct absolute X and Y values 2007-01-31 14:07:20 +00:00
Elias Naur
46ce5679c8 Windows AWTInput: Make sure the cursor is contained within the window when the Mouse is grabbed. 2007-01-30 13:08:51 +00:00
Brian Matzon
e8d032973f updated streams 2007-01-23 19:55:46 +00:00
Elias Naur
1602a74f42 Tweaked comment for Display.getAvailableDisplayModes to make it clear that invalid modes can be returned and that create() won't always detect such modes 2007-01-22 10:14:13 +00:00
Elias Naur
5d13607699 Changed version to RC2 2007-01-22 09:24:06 +00:00
Elias Naur
083137884b Remove the rest of the implementation reflection 2007-01-17 12:58:38 +00:00
Elias Naur
7742185e34 Sys.java: Don't use reflection to create platform specific implementations 2007-01-17 12:49:20 +00:00
Elias Naur
4a1b565c74 Bumped native version because of internal linux API change 2007-01-17 08:22:31 +00:00
Elias Naur
4b13bb10d3 Linux: Fixed wrong return type in LinuxEvent.nGetKeyAddress 2007-01-17 08:16:16 +00:00
Elias Naur
d3f6588580 Auto generated files update 2007-01-17 08:01:49 +00:00
Elias Naur
9d998d61ad Auto generated files update 2007-01-17 08:01:37 +00:00