Skip to content

Commit

Permalink
modify: Update JavaOpenGL to version 2.5.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Action committed May 30, 2024
1 parent 05f779c commit 3daee52
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

- Update native library to Cubism 5 SDK for Native R1.

- Update JavaOpenGL binding to jogl 2.5.0.

- Refine CI pipeline.
- Use GitHub shared actions for building test environment / run unit test...etc.
- Use Debian as a building environment in GitHub Actions CI pipeline.
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,19 @@ Since this project is built on Clean Architecture concept and runs on Java Virtu

In theory, it should able to use differnt combination of OpenGL Java libary and GUI toolkit, but the examples come with this project use the following comination.

Due to some weired bug, I couldn't make the example program runs on SWT under MacOS. Also, currently it only support MacOS running on Intel processors, Apple M1 version of MacOS is not supported.
Due to some weired bug, I couldn't make the example program runs on SWT under MacOS. I've confirmed JavaOpenGL binding could work under Intel and Apple M2 chip. I don't have other Apple chips to verify, so not sure if it will work or not.

| OS / Binding | Architecture | OpenGL Binding | GUI Toolkit |Supported | Note
| ------------- |------------- | ------------------ |------------ |------------------ |------
| Linux | x86_64 | JavaOpenGL | Swing |:heavy_check_mark: | 1
| Linux | x86_64 | LWJGL | SWT |:heavy_check_mark: | 2
| Windows 10 | x86_64 | JavaOpenGL | Swing |:heavy_check_mark: |
| Windows 10 | x86_64 | LWJGL | SWT |:heavy_check_mark: |
| MacOS | x86_64 | JavaOpenGL | Swing |:heavy_check_mark: | 3
| MacOS | x86_64 | LWJGL | SWT |:x: |
| MacOS | x86_64 / M2 | JavaOpenGL | Swing |:heavy_check_mark: |
| MacOS | x86_64 / M2 | LWJGL | SWT |:x: |

1. Works both on X11 / Wayland natively.
2. Works on X11 natively, you need set `GDK_BACKEND=x11` environment variable to make it work on Wayland.
3. Must use jogamp-fat-v2.4.0-rc-20210111.jar, auto pull-in dependency from Maven Central will not work.

Install & Usage
--------------------
Expand Down
9 changes: 9 additions & 0 deletions modules/joglBinding/build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
val joglVersion = "2.5.0"

resolvers += "jogamp" at "https://jogamp.org/deployment/maven"

libraryDependencies ++= Seq(
"org.jogamp.gluegen" % "gluegen-rt-main" % joglVersion,
"org.jogamp.jogl" % "jogl-all-main" % joglVersion
)

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -4882,6 +4882,8 @@ class MockedGL2 extends GL2 {

override def getDefaultDrawFramebuffer: Int = ???

override def getDefaultDrawBuffer(): Int = ???

override def getDefaultReadFramebuffer: Int = ???

override def getDefaultReadBuffer: Int = ???
Expand Down

0 comments on commit 3daee52

Please sign in to comment.