-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bgfx examples #6
Conversation
bgfx examples migrated from lwjgl-bgfx development branch.
Let's merge this once org.lwjgl:lwjgl-bgfx is in oss.sonatype.org. |
The latest nightly build includes the bgfx bindings. There have been some breaking changes since this PR, e.g. |
Now, the bgfx bindings do some invalid parameter validations. The following usecase is now not possible anymore: https://github.com/bkaradzic/bgfx/blob/master/examples/02-metaballs/metaballs.cpp#L608-L610
|
Yes, this applies to |
Thanks, will be fixed in the next nightly with LWJGL/lwjgl3@7808282. |
Is there already a consensus on how LWJGL 3 is going to handle the bgfx shared library? Currently, when you just checkout the lwjgl3-demos repository and download all the Maven dependencies, you cannot run bgfx demos without manually building bgfx as a shared library (or downloading it from somewhere else). |
I initially thought that bgfx is statically configured for specific backends, but I was wrong. The default build is small enough and supports all backends on a given platform. So yes, I'll setup CI builds. The builds will be configured with |
You don't need
In any case, it's nice that LWJGL provides the means to replace the shared lib at any time, if needed. |
I also did not compile with |
I'm afraid it's going to break badly under MacOS without
OK, will build without it, until that issue is fixed and/or the Oculus user base increases. |
I propose to add this code in Demo.java right below the GLFW window creation to fix window resizing and aspect ratio issues in all demos: GLFWFramebufferSizeCallback fbsc;
glfwSetFramebufferSizeCallback(window, fbsc = new GLFWFramebufferSizeCallback() {
public void invoke(long window, int width, int height) {
Demo.this.width = width;
Demo.this.height = height;
bgfx_reset(width, height, Demo.this.reset);
}
}); |
The latest nightly build (28) includes bgfx shared libraries. |
There does not seem to be bgfx natives on Maven/oss.sonatype.org. |
Sorry about that, should be OK now. |
Yes, seems to work fine. @code-disaster, could you add the necessary changes to the pom.xml in the profiles section to include the natives, please? Then we can merge the pull request. |
Thanks for your work of porting the bgfx demos! |
Java ports of bgfx examples to accompany LWJGL/lwjgl3#240.