LWJGL Forum

Programming => General Java Game Development => Topic started by: ted_gress on December 10, 2016, 07:54:50

Title: Swing canvas and LWJGL
Post by: ted_gress on December 10, 2016, 07:54:50
I was wondering if it was possible to render to a swing component like a canvas or something of that sort.
Title: Re: Swing canvas and LWJGL
Post by: spasi on December 10, 2016, 12:51:50
LWJGL 3 has bindings to JAWT, which lets you do this (https://github.com/LWJGL/lwjgl3/blob/master/modules/core/src/test/java/org/lwjgl/demo/system/jawt/LWJGLCanvas.java). It's not a complete solution but can get you started.