Commit Graph

23 Commits

Author SHA1 Message Date
Brian Matzon 4b0cbedc64 excessively verbose exception description added to lower support requests :) 2011-05-04 19:24:57 +00:00
Ioannis Tsakpinis 2b79b68501 Misc GL/CL fixes and additions.
Made native calls package private, we can now use them from the high-level API.
Added support for "render-to-texture" in the fractal demo.
2010-09-30 17:21:50 +00:00
Ioannis Tsakpinis a8bcb7fd25 Ported codebase to Java 1.5.
Misc OpenCL fixes and API improvements.
Changed fractal demo to use events/sync objects instead of cl/glFinish for synchronization. (untested)
2010-09-28 21:11:35 +00:00
Ioannis Tsakpinis 1aa9ab5104 Added support for OpenCL & CL/GL interop + minor improvements. [WIP] 2010-09-26 23:43:24 +00:00
Ioannis Tsakpinis 47c9991b41 Fixed ByteOrder of @Return ByteBuffers.
Cleaned up Drawable interface and introduced a reusable base implementation.
Added support for disabling runtime function checks, buffer checks and state tracking. Activated with -Dorg.lwjgl.util.NoChecks=true
2010-04-22 23:21:48 +00:00
Ioannis Tsakpinis c3d6d43d2a Added support for OpenGL 3.3 and OpenGL 4.0. 2010-03-11 21:06:49 +00:00
Ioannis Tsakpinis 6e5355bc83 Added generator support for null-terminated string lists.
Fixed GetUniformIndices and TransformFeedbackVaryings.
Added a ARB_uniform_buffer_object test.
2009-12-04 04:49:19 +00:00
Ioannis Tsakpinis d7ee23f9b2 Added support for OpenGL 3.0 functionality
Added support for OpenGL 3.0 context creation (MAJOR/MINOR versions, DEBUG mode, FORWARD_COMBATIBLE mode)
Added support for OpenGL 3.0 context sharing
Added support for OpenGL 3.0 extension detection
Improved support for floating point PixelFormats (ARB_color_buffer_float)
Added support for packed floating point PixelFormats (EXT_packed_float)
Added support for sRGB PixelFormats (ARB_framebuffer_sRGB)
Added support for pseudo-FORWARD_COMBATIBLE mode (deprecated functions not loaded)
Added support for EXT_direct_state_access
2008-08-19 16:46:03 +00:00
Brian Matzon bb16ec7492 updated and added license where needed 2008-04-07 18:36:09 +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 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
Elias Naur a2059554c2 Split out the exception case in BufferChecks.checkBufferSize() to help the JVM inline it 2006-05-29 12:30:23 +00:00
Ioannis Tsakpinis 843ce1bc27 Added EXT_timer_query extension
Added support for long (int64) types
2006-05-25 13:03:35 +00:00
Brian Matzon 8a3bee6b1c applied patch to move ID tag 2006-03-23 19:32:21 +00:00
Caspian Rychlik-Prince 200ed3792a Cleanup of unused imports 2005-05-04 20:59:44 +00:00
Elias Naur 2d4c68d037 *** empty log message *** 2005-02-17 12:48:06 +00:00
Elias Naur 34f4e7ae56 Implemented generator support for per-context function pointers. Fixed NV_vertex_array_range 2005-02-16 16:04:29 +00:00
Elias Naur 17ee2523c0 The Big Generator. All OpenGL and OpenAL java and native source files are now generated from templates. See doc/generator.txt for a detailed description. 2005-02-15 11:05:36 +00:00
Elias Naur dcb726d7da Added BufferChecks.checkNullTerminated 2005-02-09 13:44:52 +00:00
Brian Matzon 2632148791 cleanup 2005-02-07 18:48:22 +00:00
Ioannis Tsakpinis 3041c0494d Code cleanup 2004-11-25 22:20:45 +00:00
Elias Naur ad1ff19437 Split general buffer checks into org.lwjgl.BufferChecks and the gl specific buffer checks into org.lwjgl.opengl.GLBufferChecks 2004-07-29 11:20:43 +00:00