Main Menu

Recent posts

#11
Lightweight Java Gaming Library / LWJGL 3.3.6
Last post by spasi - January 06, 2025, 23:39:49
LWJGL 3.3.6 has been released!

Release notes
Download
#12
Lightweight Java Gaming Library / Re: LWJGL 3.3.5
Last post by spasi - January 06, 2025, 23:38:23
Hey cpope9141,

LWJGL 3.3.6 has been released, which seems to not suffer from the same problem.

The issue started with 3.3.4, which was the first release to use Clang-CL to build the Windows binaries. With 3.3.6 we have reverted back to MSVC and it looks like the false positives have been eliminated.
#13
Lightweight Java Gaming Library / Re: Indie Fighting Game using ...
Last post by cpope9141 - December 23, 2024, 00:57:38
The December release of Area Zero (v0.20.0) is now available:
https://ephemeraltechnicalarts.com/area-zero

#14
Lightweight Java Gaming Library / Re: LWJGL 3.3.5
Last post by cpope9141 - December 23, 2024, 00:55:43
Has anyone else reported a security threat from lwjgl-stb-natives-windows.jar ?

Windows Security reported this threat when I copied over files from the 3.3.5 custom zip from the download page:

Detected: Trojan:Script/Phonzy.B!ml
Status: Quarantined
...
Date: 12/22/2024 6:47 PM
Details: This program is dangerous and executes commands from an attacker.
#15
OpenGL / Null Context : OpenGL integrat...
Last post by bolivar - December 16, 2024, 22:22:52
Hello everyone,

I am trying to use an OpenGL canvas in SWT with Zulu 17 on Mac Aarch64.

To do so, I relied on the provided example SWTDemo but I got the following exception:

Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.eclipse.swt.internal.cocoa.NSGraphicsContext.saveGraphicsState()" because "context" is null
   at org.eclipse.swt.widgets.Widget.drawRect(Widget.java:763)
   at org.eclipse.swt.widgets.Canvas.drawRect(Canvas.java:170)
   at org.eclipse.swt.widgets.Display.windowProc(Display.java:6124)
   at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
   at org.eclipse.swt.widgets.Display.applicationNextEventMatchingMask(Display.java:5398)
   at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5802)
   at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
   at org.eclipse.swt.internal.cocoa.NSApplication.nextEventMatchingMask(NSApplication.java:92)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3877)
   at com.afp.iris.mpvlab.SwtDemo.main(SwtDemo.java:158)

Has anyone encoutered this issue ? If so I will very appreciate any tips or workaround.

Thank you

Bolivar


#16
Lightweight Java Gaming Library / LWJGL 3.3.5
Last post by spasi - December 15, 2024, 22:34:14
LWJGL 3.3.5 has been released!

Release notes
Download
#17
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!
#18
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

#19
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
#20
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.