question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AWT canvas approach for LWJGL3

See original GitHub issue

Currently, we still have LwjglCanvas for LWJGL2 backend, which gives us freedom to incorporate a LibGDX module anywhere to an AWT/Swing component based application. That’s a really good option for any desktop application/tool that can benefit from java native GUI widget toolkit.

I see that Lwjgl3Graphics code is significantly different from LwjglGraphics and doesn’t expect to work with anything but a window directly. So my question is if there are any plans to extend LWJGL3 backend with that sort of behavior, because seems like I’m really stuck with LWJGL2 forever with my desktop non-game related projects and see no easy way to utilize LWJGL3 backend for that case.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
dzolocommented, Aug 28, 2020

Seems there is progress in LWJGL https://github.com/LWJGLX/lwjgl3-awt

2reactions
NathanSweetcommented, Apr 25, 2018

I doubt we’ll remove LWJGL2 until LWJGL3 can support AWT, which may be never. gdx-tools relies on it (as does Spine).

Is it what you’re using for OS X, right? Does it have any real potential to be good universal desktop backend at all?

Yep, and nope. I don’t think any changes have been made to it since it was removed from libgdx. It is not for general use though, only for OS X (I had trouble on Linux so didn’t bother making that work, but I think Windows was OK). To do it properly, LWJGL3 would be made to work with AWT on all OSes, then we’d have the best of all worlds.

Again, definitely pester the LWJGL3 guys and see if they will work on supporting AWT. It’s possible since we use GLFW on OS X with AWT in Spine. We’d be happy to assist the LWJGL3 guys if that would help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swing canvas and LWJGL 3 - gui - jMonkeyEngine Hub
My question is so: Is it possible to integrate rendering canvas within a Swing application using JMonkey 3.1beta2 and jme3-lwjgl3 ?
Read more >
Canvas - LWJGL Forum
'm trying to render to canvas with lwjgl3. The previous lwjgl2 had a setParent() method, but since there is no Display class in...
Read more >
OpenGL and AWT/Swing User Interface - java - Stack Overflow
The idea is taking an EGL context and GLES, and setting AWT canvas surface as a direct target for the context. You don't...
Read more >
JavaFX with embedded lwjgl canvas (awt) on it? : r/libgdx
Is there a way of integrating the .awt.canvas component in a JavaFX app? I've been trying SwingNode and other approaches with 0 success....
Read more >
Java AWT | Canvas Class - GeeksforGeeks
Canvas(GraphicsConfiguration c): Creates a new canvas with a specified graphics configuration. Commonly used Methods in Canvas Class. Method ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found