Main Menu

Canvas

Started by LinasNikis, November 18, 2015, 16:54:48

Previous topic - Next topic

LinasNikis

'm trying to render to canvas with lwjgl3. The previous lwjgl2 had a setParent() method, but since there is no Display class in lwjgl3, how can I implement the setParent() method with glfw? Sorry I'm almost a total newbie but i really don't want to switch to lwjgl 2 because I'm almost done writing an engine with lwjgl 3.
Thank you!

SHC

Unfortunately you can't integrate LWJGL 3 with AWT, there is no AWT support out of the box.

LinasNikis

But is it possible to make it compatible with AWT? I really don't want to rewrite the engine for lwjgl 2 :(

abcdef

The closest you will get is javafx, there are some threads on the topic

kappa

You could also just use SWT, example using LWJGL3 here.