Main Menu

Recent posts

#1
OpenGL / No OpenGL context has been mad...
Last post by starfyre - November 15, 2024, 22:14:05
Hey All...

I'm getting the error "No OpenGL context has been made current through recognized API methods (glfwMakeContextCurrent)" when I try and run LWJGL 3.3.4+7! on Java 21 in Elclipse 20204-09.
Windows 11 version 10.022631 build 22631 :: NVIDIA GeForce RTX 4090 :: Intel Core i9-14900KS

I am calling glfwMakeContextCurrent(mWindowID); The windowID is that same throughout the program and the thread ID is the same throughout the program.

System.out.println(Thread.currentThread().threadId() + " " + mWindowID);
		glfwMakeContextCurrent(mWindowID);

		GL.createCapabilities();

		Callback debugProc = GLUtil.setupDebugMessageCallback();
		glfwSwapInterval(1);

		if (isVSync()) {
			glfwSwapInterval(1);
		}

		glfwShowWindow(mWindowID);

The failing code is GL30.glGenVertexArrays()...

private int createVAO() {
		System.out.println(Thread.currentThread().threadId() + " " + windowManager.getWindow());
		int id = GL30.glGenVertexArrays();
		mVAOS.add(Integer.valueOf(id));
		GL30.glBindVertexArray(id);
		return id;
	}

any help will be greatly appreciated!
#2
LWJGL Documentation / The HelloWorld sample at https...
Last post by blob - October 29, 2024, 20:13:47
The HelloWorld sample at https://www.lwjgl.org/guide tries to set the global window position.

// Center the window
			glfwSetWindowPos(on
				window,
				(vidmode.width() - pWidth.get(0)) / 2,
				(vidmode.height() - pHeight.get(0)) / 2
			);

This is incompatible with Wayland as per GLFW documentation

glfwSetWindowPos docs

#3
Lightweight Java Gaming Library / JDBC to ODBC bridge using LWJG...
Last post by teambob - October 29, 2024, 09:18:11
Hi everyone,

I had a few weeks between contracts, so I wrote a JDBC to ODBC bridge using your library's ODBC binding.

You can check out the alpha release here: https://github.com/teambob/jdbc2odbc/releases/tag/v0.1-ALPHA

The biggest challenge was dealing with the different library names on Linux and Windows.

Cheers
Andrew
#4
Lightweight Java Gaming Library / Re: Indie Fighting Game using ...
Last post by cpope9141 - September 19, 2024, 20:08:15
The September release of Area Zero (v0.17.0) is now available: https://ephemeraltechnicalarts.com/area-zero

Release notes are available on the website.
#5
Bug Reports / RFE / Re: [RFE] Metal API Bindings?
Last post by spasi - September 06, 2024, 09:29:42
Hey jackd5011,

No, LWJGL provides C bindings only. There are a few options for Metal:

1. Vulkan over MoltenVK (indirect)
2. bgfx with the Metal backend (indirect)
3. Use the Objective-C Runtime bindings to call the Metal API (direct).

The third option is what C++ wrappers do to expose Metal. Performance-wise it's equivalent to using Metal directly via Obj-C/Swift.

A final option would be writing a renderer using native Metal, wrapping it in a shared library, then use that from Java (with a custom, application-specific API).
#6
Bug Reports / RFE / [RFE] Metal API Bindings?
Last post by jackd5011 - September 06, 2024, 07:20:50
Has there been any consideration to add native bindings for Metal on Apple devices?

I know we have Vulkan bindings which uses MoltenVK under the hood, but in my experience the compatibility with M2 macs isn't great and I came across a lot of issues following a standard Vulkan tutorial, and the MoltenVK docs specifically say that it doesn't have perfect compatibility with the standard Vulkan API.

So until Apple adds proper support for Vulkan (which they never would), is there any consideration for LWJGL to create Metal bindings?
#7
Bug Reports / RFE / Re: unsatisfiedLinkError
Last post by jakethesnake - September 02, 2024, 11:43:17
Quote from: spasi on September 02, 2024, 08:35:24I just tested it again and the fallback appears to be working fine.

I tested as well just now, and it does work for me. Very strange. I asked the user to remove the temporary lwjgl.dll There's no 32-bit lwjgl version anymore, right? So It can't be an outdated version.




https://imgur.com/a/7GvpXqt

It claims it's x64 3.3.3 here.

A mystery then, or error on our side. Thank for the help.
#8
Bug Reports / RFE / Re: unsatisfiedLinkError
Last post by spasi - September 02, 2024, 08:35:24
I just tested it again and the fallback appears to be working fine.
#9
Bug Reports / RFE / Re: unsatisfiedLinkError
Last post by jakethesnake - September 02, 2024, 06:37:08
Thank you,

No, alas, the version is 3.3.3

The username was reported to be: пользователь
When the user changed to something latin, the error disappeared.

Let me know if it's something you can reproduce, or else I'll break my windows install and try it.
#10
Bug Reports / RFE / Re: unsatisfiedLinkError
Last post by spasi - September 01, 2024, 10:36:51
Hey jakethesnake,

How old is the LWJGL version? This should be fixed with https://github.com/LWJGL/lwjgl3/commit/dedb44e0ab364ceab1f452daa825930052b1829c, available since version 3.2.2.