Posted
about 10 years
ago
Not sure why it (even) works a few times, but your code has obvious issues:a) You don't have to describe the structs to libFFI. You'd only need to do that if you had to pass or return the spnav structs by value.b) You're passing the address of spnav_...
|
Posted
about 10 years
ago
Ok, I've tried to create some FFITypes for the three different events[code]spnav_motion_event = new FFIType(); spnav_motion_event.setType(LibFFI.FFI_TYPE_STRUCT); PointerBuffer elementsBuffer = PointerBuffer.allocateDirect(9); elementsBuffer.pu...
|
Posted
about 10 years
ago
Quote from: kappa on April 17, 2015, 19:52:27The main Slick-Util download is for LWJGL2, you can grab a LWJGL3 compatible version of Slick-Util from here.I see, t...
|
Posted
about 10 years
ago
The main Slick-Util download is for LWJGL2, you can grab a LWJGL3 compatible version of Slick-Util from here.
|
Posted
about 10 years
ago
QuoteMaybe it's just that slick works with lwjgl2? Slick hasn't been update for a long time, if there are any method changes in LWJGL3 (which there are) that effect slick then it won't work.
|
Posted
about 10 years
ago
Just be careful with the struct layout, it can be tricky to get right.Even though libFFI supports defining structs at runtime and can calculate their layout, it doesn't expose any API for the user ...
|
Posted
about 10 years
ago
have you got opencl drivers installed on your system for your GPU? I believe you still need the OS drivers for this to work, the natives in LWJGL just bind the OS level libraries.
|
Posted
about 10 years
ago
Hello,well, what you can do without altering LWJGL is to allocate a direct ByteBuffer via BufferUtils.createByteBuffer(int) and hand the address of this buffer to your spnav_wait_event function.You can obtain the address of the underlying native buff...
|
Posted
about 10 years
ago
Hi thereI am running my own applet inside of LWJGL_Applet 2.9.3 Applet Loader. I am please to say my applet (which already contains other functionality) works alright. So I added the OpenCL sum example cod...
|
Posted
about 10 years
ago
Hello everyone,I'm trying to develop a small wrapper class for the spacenavd driver to access my 3d Mouse but I have come over a problem where I need your help. I'm using the libFFI binding for this. I know, that there is also a java sdk, but it hasn'...
|