LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: spasi on February 04, 2018, 18:14:05

Title: LWJGL 3.1.6
Post by: spasi on February 04, 2018, 18:14:05
LWJGL 3.1.6 has been released!

Release notes (https://github.com/LWJGL/lwjgl3/blob/master/doc/notes/3.1.6.md) (JSR 305 nullability annotations, more Java 9 improvements, all bindings updated to latest versions)
Download (https://www.lwjgl.org/download)
Title: Re: LWJGL 3.1.6
Post by: mudlee on February 15, 2018, 15:30:19
Hi.

I use the MemoryStack class like this:
Code: [Select]
try (MemoryStack stack = MemoryStack.stackPush()) {
    FloatBuffer buffer = stack.mallocFloat(16);
    value.get(buffer);
    GL41.glProgramUniformMatrix4fv(programID, uniforms.get(uniformName), false, buffer);
}

But now it's not available at: org.lwjgl.system.MemoryStack

What is the alternative solution?
Title: Re: LWJGL 3.1.6
Post by: spasi on February 15, 2018, 15:34:38
Nothing changed wrt MemoryStack in 3.1.6, it's still available (and there are no plan to change that). Have you checked that your classpath/modulepath includes lwjgl-core?
Title: Re: LWJGL 3.1.6
Post by: mudlee on February 15, 2018, 15:41:41
Yes, I've checked. I use maven with Java 8, in IntelliJ Idea.

I deleted all the caches, the project itself, and started from scratch.
Attached my pom.xml and the error on a screenshot.

Title: Re: LWJGL 3.1.6
Post by: mudlee on February 15, 2018, 15:47:34
OK, something went wrong with maven, it downloaded the jar with 0Kb. Cleared my .m2 folder and now it works, sorry.