LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: mudlee on October 08, 2018, 13:13:16

Title: [SOLVED] Is bgfx example broken?
Post by: mudlee on October 08, 2018, 13:13:16
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 (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?
Title: Re: Is bgfx example broken?
Post by: KaiHH on October 08, 2018, 13:22:02
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.
Title: Re: Is bgfx example broken?
Post by: mudlee on October 08, 2018, 13:25:08
Ah, yes, you were right. Using 3.2.1-SNAPSHOT fixes the problem.