[LEGACY] LWJGL 2.X - The Lightweight Java Game Library.
Find a file
void bc37a79798 Mac OS X: fix custom mouse cursor image
According to
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/A
pplicationKit/Classes/nsbitmapimagerep_Class/Reference/Reference.html
the data referenced by the "planes" parameter will not be copied into
the NSBitmapImageRep class.

This means that when the referenced data changes (which is very likely
in our case since the data is retrieved from Java by
GetDirectBufferAddress()) we see exactly the effect described in the
LWJGL forum here: http://lwjgl.org/forum/index.php/topic,5007.0.html

The Apple class reference documentation linked above also describes
that when the "planes" parameter is NULL then the NSBitmapImageRep
class will allocate enough memory to store the image data and will
automatically free the allocated memory when the NSBitmapImageRep
instance is freed. In this case the data can be accessed with the
"bitmapData" method.

Which is exactly what we'll do now: pass NULL into the method to let it
allocate memory and then simply memcpy our image data into that area.

This seems to fix the mouse cursor image.
2013-05-25 17:56:05 +02:00
applet update applet html files to include al_min_jre tag 2011-09-03 18:41:22 +00:00
doc update credits 2011-10-06 21:11:46 +00:00
eclipse-update LWJGL info and test view are now sorted into category "general" (otherwise they are not visible in Eclipse 4.2) 2012-05-09 12:33:16 +00:00
libs Update to latest build of OpenAL-Soft 1.15.1 2013-04-06 23:58:40 +01:00
maven applying rubens latest maven patches 2011-10-15 20:18:01 +00:00
platform_build applying frogs bsd build patch 2013-04-23 22:04:23 +02:00
res Fixed JDK5 compilation issue and added SpriteShootout textures. 2011-04-08 03:41:19 +00:00
src Mac OS X: fix custom mouse cursor image 2013-05-25 17:56:05 +02:00
.gitignore Shrink .gitignore 2012-11-27 20:18:16 +01:00
build.xml fixed path to CI 2013-04-21 22:59:02 +02:00
README.md Adding README file 2012-11-18 00:32:14 +01:00

LWJGL - Lightweight Java Game Library

The Lightweight Java Game Library (LWJGL) is a solution aimed directly at professional and amateur Java programmers alike to enable commercial quality games to be written in Java. LWJGL provides developers access to high performance crossplatform libraries such as OpenGL (Open Graphics Library), OpenCL (Open Computing Language) and OpenAL (Open Audio Library) allowing for state of the art 3D games and 3D sound. Additionally LWJGL provides access to controllers such as Gamepads, Steering wheel and Joysticks. All in a simple and straight forward API.

Website: http://lwjgl.org Forum: http://lwjgl.org/forum Bugs/Suggestions: https://github.com/LWJGL/lwjgl/issues

Compilation

LWJGL requires a JDK and Ant installed to compile, as well as your platforms native compiler to compile the JNI.

  • ant generate-all
  • ant compile
  • ant compile_native