Skip to content

Commit

Permalink
LwjglCanvas using lwjgl-jawt (jMonkeyEngine#2153)
Browse files Browse the repository at this point in the history
Canvas rendering solution using lwjgl-jawt
  • Loading branch information
JNightRider authored Feb 5, 2024
1 parent f3f24e0 commit 22bf58a
Show file tree
Hide file tree
Showing 12 changed files with 995 additions and 187 deletions.
4 changes: 2 additions & 2 deletions jme3-examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ dependencies {
implementation project(':jme3-effects')
implementation project(':jme3-jbullet')
implementation project(':jme3-jogg')
implementation project(':jme3-lwjgl')
// implementation project(':jme3-lwjgl3')
// implementation project(':jme3-lwjgl')
implementation project(':jme3-lwjgl3')
implementation project(':jme3-networking')
implementation project(':jme3-niftygui')
implementation project(':jme3-plugins')
Expand Down
3 changes: 1 addition & 2 deletions jme3-examples/src/main/java/jme3test/awt/TestCanvas.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

package jme3test.awt;

import com.jme3.app.LegacyApplication;
Expand Down Expand Up @@ -171,7 +170,7 @@ public void actionPerformed(ActionEvent e){
public void actionPerformed(ActionEvent e) {
currentPanel.remove(canvas);
app.stop(true);

createCanvas(appClass);
currentPanel.add(canvas, BorderLayout.CENTER);
frame.pack();
Expand Down
3 changes: 3 additions & 0 deletions jme3-lwjgl3/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
dependencies {
api project(':jme3-core')
api project(':jme3-desktop')

api "org.lwjglx:lwjgl3-awt:0.1.8"

api "org.lwjgl:lwjgl:${lwjgl3Version}"
api "org.lwjgl:lwjgl-glfw:${lwjgl3Version}"
api "org.lwjgl:lwjgl-jawt:${lwjgl3Version}"
api "org.lwjgl:lwjgl-jemalloc:${lwjgl3Version}"
api "org.lwjgl:lwjgl-openal:${lwjgl3Version}"
api "org.lwjgl:lwjgl-opencl:${lwjgl3Version}"
Expand Down
Loading

0 comments on commit 22bf58a

Please sign in to comment.