[SOLVED] Is bgfx example broken?

Started by mudlee, October 08, 2018, 13:13:16

Previous topic - Next topic

mudlee

Hi.

I'd like to create a basic LWJGL/BGFX example/template, if one (eg. me) wants to start a java game development with LWJGL and bgfx.
In this file I have a problem: https://github.com/LWJGL/lwjgl3-demos/blob/master/src/org/lwjgl/demo/bgfx/Demo.java
line 131:
format = init.resolution().format();


.resolution returns a BGFXResolution that does not have format method.

Am I missing something?

KaiHH

The lwjgl3-demos repository always compiles against the very very latest LWJGL snapshot versions, which currently is 3.2.1-20181006.135819-4. It might be that you are using an earlier version in which the BGFX version was different.

mudlee

Ah, yes, you were right. Using 3.2.1-SNAPSHOT fixes the problem.