Skip to content

glegris/raygui4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raygui4j

CI

This repository packages the Java translation of raygui 3.5 produced by mir2j, so you can use raygui as a regular Java library with no JNI / native bindings. The goal is to make immediate-mode GUI controls available anywhere a JVM runs.

The current backend is Swing. You can add others quickly by implementing this small backend interface.

See the demo source for a quick start and a tour of the API.

Features

  • Pure Java: no native code, no platform toolchains.
  • Immediate-mode API: mirrors raygui 3.5 entry points.
  • Pluggable backends: bring your own renderer/toolkit by implementing Backend.
  • Portable: runs anywhere a JVM runs

Getting the library

Option A — Build from source

git clone https://github.com/glegris/raygui4j.git
./compile-raylib4j.sh
# produces raygui4j.jar

Option B - Download a prebuilt JAR

Grab the jar from Releases

Demo

Run the demo from the built (or downloaded) jar:

java -jar raygui4j.jar

Demo screenshot

License & Credits

  • raygui is © Ramon Santamaria, licensed under the zlib/libpng license.
  • The generated Java artifacts retain the original license terms.
  • raygui4j is licensed under the MIT license