Commit Graph

605 Commits

Author SHA1 Message Date
Ioannis Tsakpinis cad14be3eb Added new OpenCL extensions. 2013-07-24 15:35:59 +03:00
Ioannis Tsakpinis e5aada8c45 Fixed typo in KHRDebug callback pointer. 2013-06-21 14:44:29 +03:00
kappaOne 8deac76a5b Update author information 2013-04-21 15:37:02 +01:00
kappaOne 5738477a7b Merge pull request #19 from LWJGL/osx-java7
LWJGL OS X Java 7 Branch is Ready!
2013-03-14 04:49:43 -07:00
kappaOne f381eb1f35 Simplify code in AWTSurfaceLock for CALayer support 2013-02-17 16:50:56 +00:00
kappaOne 6663ee037c Attempt fix for no JAWT on OS X Java 7 issue 2013-02-16 14:07:16 +00:00
Ioannis Tsakpinis 1c671598aa Reverted warning level to 2, until we modify the generator to emit explicit casts. 2013-01-30 02:07:40 +02:00
Ioannis Tsakpinis 5400bb27db Misc fixes and improvements on Windows:
- Cleaned up cl flags and enabled parallel compilation. Native compilation
  is now multiple times faster.
- Fixed all /W3 compilation warnings.
- Changed window flag from WS_CHILDWINDOW to WS_POPUP when Display.setParent
  is used, in an attempt to fix focus-related issues.
2013-01-29 22:53:11 +02:00
Ioannis Tsakpinis be5655a254 Removed redundant GLsync definition and replaced APIENTRY with GL_APIENTRY. 2012-11-06 12:14:03 +00:00
Ioannis Tsakpinis cab3d10c46 Changed ALC10's alcGetString and alcOpenDevice to use UTF8 decoding/encoding.
New GL extensions: NV_compute_program5, NV_shader_storage_buffer_object, NV_shader_atomic_counters, NV_deep_texture3D
New GLES extension: QCOM_binning_control
2012-08-16 18:58:41 +00:00
Ioannis Tsakpinis 929817a4eb Added support for OpenGL 4.3 and OpenGL ES 3.0.
Modified the generator process to use relative paths. We were hitting the command line length limit on Windows.
Some extension improvements, fixes and spec updates.
2012-08-07 15:14:03 +00:00
Ioannis Tsakpinis 57ec5db726 Fixed clEnqueueNativeKernel crash. 2012-02-28 18:18:06 +00:00
Ioannis Tsakpinis ad7769f9c9 Added support for OpenCL 1.2 [UNTESTED] 2011-11-16 14:36:28 +00:00
Ioannis Tsakpinis dd87468d6f Added @Optional support for AL and GLES. 2011-10-12 17:58:04 +00:00
kappa1 c5eadd89a0 Limit the use to CALayer only to when using Display.setParent(), an AWTGLCanvas in non fullscreen mode. 2011-10-11 22:30:55 +00:00
kappa1 63603ca090 mac, attempt a quickfix in order to temporarily bypass nightly server restrictions so that mac natives can build. 2011-08-31 21:06:46 +00:00
kappa1 702777d0fb apply patch to enable applets on OS X using the java plugin2, credits to pjohnson for creating patch. 2011-08-29 13:34:17 +00:00
Ioannis Tsakpinis 67945fe317 Added unicode support on Windows.
Fixed AL and GLES native stub bindings.
Replaced many GetStringNativeChars usages with a Java implementation.
2011-08-16 22:17:32 +00:00
Ioannis Tsakpinis 72f4758d5e Added support for OpenGL 4.2 2011-08-08 10:48:14 +00:00
Ioannis Tsakpinis 4a1d110b22 Pointer cast warning fix. 2011-07-16 16:59:46 +00:00
Ioannis Tsakpinis 4a02aed129 More java-side pointer arithmetic.
Fixed pointer cast warning.
2011-07-16 16:42:51 +00:00
Ioannis Tsakpinis bab22f696b Merge preparation. 2011-07-10 10:26:36 +00:00
Ioannis Tsakpinis eff8493ef6 Added support for NV_present_video and NV_video_capture.
Re-designed WindowsPeerInfo so that we can more easily use WGL extensions in the future.
2011-05-21 10:48:05 +00:00
Ioannis Tsakpinis 40cbf3e45f Added support for OpenGL ES. 2011-05-17 16:53:57 +00:00
Ioannis Tsakpinis d53afc0b4d Added missing include. 2011-05-11 14:21:59 +00:00
Ioannis Tsakpinis ce777ef350 Pointer cast fix. 2011-05-11 09:50:50 +00:00
Ioannis Tsakpinis 3fb5f8ab8b Added alignment checks to PointerBuffer constructor. 2011-05-11 00:12:52 +00:00
Brian Matzon ebb196936e adding support for zeroing buffers - patch'ish by MatthiasM 2010-11-24 21:48:23 +00:00
Brian Matzon 67307a7023 update default size of buffer for sprintfJavaString. Failed to upgrade size on second run since do_vsnprintf was returning -1 on windows at least 2010-10-14 19:58:32 +00:00
Ioannis Tsakpinis 74d25bcffe Calling convention is ignored on x64. 2010-10-12 09:32:34 +00:00
Ioannis Tsakpinis 9405dde18a Replaced HashMap<Long, T> with FastLongMap in the OpenCL package.
Replaced CharsetEncoder with simple ASCII encoding in APIUtil.
Attempt to fix CL native kernels on x64.
2010-10-12 01:35:33 +00:00
Ioannis Tsakpinis b805673891 Fixed 64bit loading. 2010-10-04 22:51:19 +00:00
Ioannis Tsakpinis 60bd1c00ac Minor clean-up. 2010-10-04 17:04:46 +00:00
Ioannis Tsakpinis f80e5a94d6 OpenCL bug fixes on MacOS.
Improved 64bit pointer detection.
2010-10-01 22:20:14 +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 917c79a7d4 Apple's cl_platform.h is missing CL_CALLBACK. 2010-09-27 00:13:31 +00:00
Ioannis Tsakpinis 91593a3a2c Added APPLE's cl_platform.h 2010-09-26 23:44:19 +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 5842103580 Added support for OpenGL 4.1 and new extensions. 2010-07-27 15:33:22 +00:00
Brian Matzon 6d72727f0a OAL patches by Ciardhubh 2010-07-14 13:12:24 +00:00
Ioannis Tsakpinis 21b3c3d818 Added PixelFormat support for framebuffer CSAA (NV_multisample_coverage, WGL & GLX only).
Added support for AMD_name_gen_delete and AMD_debug_output. The AMDDebugOutputCallback class enables query-less message handling.
Added support for extension aliases.
2010-05-27 22:56:29 +00:00
Ioannis Tsakpinis b130c415f7 Added support for OpenGL 3.2 and the following extensions: AMD_draw_buffers_blend, ARB_depth_clamp, ARB_draw_buffers_blend, ARB_draw_elements_base_vertex, ARB_fragment_coord_conventions, ARB_provoking_vertex, ARB_sample_shading, ARB_seamless_cube_map, ARB_shader_texture_lod, ARB_texture_cube_map_array, ARB_texture_gather, ARB_texture_multisample, ARB_texture_query_lod, ARB_vertex_array_bgra, EXT_separate_shader_objects, EXT_texture_snorm, NV_copy_image, NV_parameter_buffer_object2. 2009-08-04 18:21:41 +00:00
Elias Naur 94bd43ce19 Windows: Handle missing va_copy macro in MSVC 2008-12-22 16:38:57 +00:00
Elias Naur f8d5028de3 Made sprintfJavaString handle arbitrary length strings and reduce stack usage 2008-12-22 16:27:21 +00:00
Elias Naur 4b93774ef7 Windows 64: Enabled lwjgl64.dll and fixed crash 2008-12-22 11:55:28 +00:00
Brian Matzon b4f3c0e54b windows compile fixes 2008-11-10 20:38:55 +00:00
Elias Naur b5846167bb extgl.h should use definitions from the BSD licensed Mesa gl.h and glext.h instead of the original SGI gl.h/glext.h to avoid the SGI license 2008-11-10 20:07:21 +00:00
Brian Matzon 1099551ad9 missing special handler for ALC_ALL_DEVICES_SPECIFIER 2008-06-05 08:12:14 +00:00
Elias Naur 8b0b1b8b63 Added platform specific getJNIVersion implementations 2008-04-30 14:58:47 +00:00
Elias Naur add0189490 NewStringNativeUnsigned should return NULL if argument string is NULL 2008-04-25 17:21:59 +00:00
Elias Naur 8d5e9695a5 Removed unused native function getJVM() 2008-04-07 19:31:23 +00:00
Brian Matzon 175642d593 updated and added license where needed 2008-04-07 18:42:36 +00:00
Elias Naur dc3999b075 Removed devil and fmod support. yay. 2008-01-21 21:38:29 +00:00
Elias Naur 74ab4f7fa4 openal: Improved error reporting from native library load 2007-11-14 10:45:07 +00:00
Brian Matzon 6768532934 reworked typecasting with a dash of insanity to look more like nalBufferData - lisp anyone? 2007-05-20 17:51:28 +00:00
Brian Matzon fc770dc67e fixed issues with typecasting of buffer type 2007-05-20 17:44:59 +00:00
Elias Naur a42f401331 Simplified ALC10.nalcOpenDevice 2007-04-26 05:58:35 +00:00
Elias Naur 23701fdf75 Windows: Remove dependency on DirectInput for WindowsMouse used by WindowsDisplay. Keyboard conversion coming up. Reasons:
1. DirectInput is deprecated (http://en.wikipedia.org/wiki/DirectInput). Specifically, Microsoft recommends using regular windows messages for keyboard and mouse input.
2. Not using DirectInput enable us to use the Raw Input JInput plugin to access multiple mice (and keyboards).
3. We're already using windows messages for features DirectInput never supported, so by removing DirectInput dependency, we get rid of some special case code.
4. When we're only using windows messages for input, we're (theoretically) more compatible than with a dependency on a properly working DirectInput.
2007-04-24 09:30:03 +00:00
Brian Matzon 2d7c4b20d7 fixing warnings 2007-04-19 23:13:52 +00:00
Brian Matzon 5caece9329 fixing warnings 2007-04-19 23:02:57 +00:00
Brian Matzon 0ac9e5ff83 removing ALC 2007-04-19 22:58:13 +00:00
Brian Matzon aa94d36e07 removed some null checks 2007-04-19 22:49:49 +00:00
Brian Matzon bd00f39ff9 using NewStringNativeWithLength 2007-04-19 22:39:08 +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 176a617393 Windows: Native compile fixes 2007-03-30 19:00:59 +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 17d7df3f19 Check cached buffer results in OpenGL functions for matching capacity 2006-12-20 17:55:10 +00:00
Brian Matzon 360da7c374 fix loading issues on linux/mac 2006-12-04 21:58:46 +00:00
Brian Matzon d1cd4b851c beta4 2006-11-18 22:22:41 +00:00
Brian Matzon fa242848af JNI_VERSION restructure 2006-11-18 22:03:02 +00:00
Brian Matzon 1e806b9188 JNI_VERSION restructure 2006-11-18 21:56:31 +00:00
Brian Matzon 88d377ca74 using __APPLE__ && __MACH__ instead of _MACOSX 2006-11-18 21:28:17 +00:00
Brian Matzon ede7b63e46 fixed relative path issues when dlopen is being called 2006-11-18 18:39:26 +00:00
Brian Matzon 93aa253732 fixed params (int -> float) 2006-08-31 16:40:53 +00:00
Elias Naur dde118016c Update to beta3 2006-08-10 08:45:10 +00:00
Elias Naur bd474ceaa9 Windows: Replace _WIN32 macro with _MSC_VER since the conditionals are really for the MSVC compiler, not for the windows platform in general. Code cleanup. 2006-07-15 21:01:11 +00:00
Elias Naur 3b03560ee7 Split the external LWJGL version from the internal version of the native JNI library. The internal JNI version is now an integer. This has multiple advantages over the old way:
1. The JNI_VERSION field is now included automatically in the generated JNI headers, relieving us of the burden of updating the version number in both java and native code.
2. We can update the JNI version with every non-compatible change of the JNI library API, not just once per release, giving us extra safety when users download and build LWJGL from SVN.
3. We can now avoid rebuilding natives if a particular release only
contains java changes. Currently, This is mostly a problem when Brian bumps the
external version prior a release and I forget to re-build the natives ;)
2006-07-14 16:14:52 +00:00
Elias Naur 624f93ba34 Windows: Use the standard _WIN32 macro instead of the LWJGL defined WIN32. 2006-07-12 16:55:05 +00:00
Elias Naur 6d751849d1 Fix compile warning 2006-07-10 00:44:49 +00:00
Elias Naur 67957781a2 Windows: don't cache the JNIEnv pointer in the message handle, but acquire it through the global JavaVM handle. 2006-07-09 08:31:49 +00:00
Elias Naur c64dd328f9 Added a native NewStringNativeUnsigned to avoid compile warnings 2006-07-07 10:36:26 +00:00
Elias Naur cbe41294a5 Linux: Moved most input related stuff from native to java 2006-07-03 18:07:44 +00:00
Brian Matzon e676edc5c0 support for version
beta2 tag
2006-07-02 21:59:10 +00:00
Brian Matzon 06e4daaa75 beta2 tag 2006-07-02 21:58:37 +00:00
Brian Matzon d7e7b299c1 beta2 tag 2006-07-02 21:58:00 +00:00
Elias Naur 6cf49718db Windows: LWJGL didn't work well with jinput, but compatibility could be greatly improved if LWJGL used DirectInput 8 (like jinput). This can't be done unconditionally, since we need the DX3 support for older versions of windows. So, I've moved most Mouse and Keyboard stuff from native to java side and generalized DirectInput access through an abstract base class, with two concrete subclasses, one for dx3 and one for dx8. 2006-06-26 13:50:48 +00:00
Brian Matzon 9e811f332a fixed offset/length to use buffer properties 2006-06-23 08:16:27 +00:00
Ioannis Tsakpinis 843ce1bc27 Added EXT_timer_query extension
Added support for long (int64) types
2006-05-25 13:03:35 +00:00
Elias Naur cce631748d Win32: Updated various native string handling to use the new _s "secure" variants. 2006-05-18 12:11:37 +00:00
Brian Matzon 7c08c27dd8 1.0beta version string 2006-05-14 21:54:48 +00:00
Brian Matzon 9130b91027 updated version to 1.0 2006-04-30 21:15:14 +00:00
Brian Matzon 5db7a9a7b8 removed printf statement 2006-04-13 13:36:03 +00:00
Elias Naur d7c55744ce Widened VBO/PBO buffer offsets and sizes to long to better match the GLsizeiptr and GLintptr native types 2006-02-26 11:44:34 +00:00
Elias Naur 55d79e7e55 Fixed a potentially uninitialized return value in ALC.c 2006-02-23 19:22:00 +00:00
Brian Matzon ac3a70926b support for ALC_ENUMERATION_EXT using LWJGL specific method: AL.getImplementations 2006-02-02 22:34:28 +00:00
Elias Naur 3b8b751935 Linux: Fixed resetDisplayMode in case XRandr is used and the first reported mode is not the initial mode 2006-01-31 12:31:41 +00:00
Elias Naur e245faff46 OpenAL: Split platform dependent code from extal.c into platform subdirs. Made nCreate take a path instead of an array of paths. 2006-01-16 15:58:23 +00:00