LWJGL Forum

Please login or register.

Login with username, password and session length

Author Topic: LWJGL 3.1.6  (Read 245 times)

spasi

  • Administrator
  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 1939
LWJGL 3.1.6
« on: February 04, 2018, 18:14:05 »

LWJGL 3.1.6 has been released!

Release notes (JSR 305 nullability annotations, more Java 9 improvements, all bindings updated to latest versions)
Download
Logged

mudlee

  • Newbie
  • *
  • Offline Offline
  • Posts: 15
Re: LWJGL 3.1.6
« Reply #1 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?
Logged

spasi

  • Administrator
  • Nerdus Imperius
  • *****
  • Offline Offline
  • Posts: 1939
Re: LWJGL 3.1.6
« Reply #2 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?
Logged

mudlee

  • Newbie
  • *
  • Offline Offline
  • Posts: 15
Re: LWJGL 3.1.6
« Reply #3 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.

Logged

mudlee

  • Newbie
  • *
  • Offline Offline
  • Posts: 15
Re: LWJGL 3.1.6
« Reply #4 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.
Logged