Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 980 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 980 Bytes

Prerequisites

Java 18

Build notice

  • glfw3.dll is obtained from https://www.glfw.org/download.html (64-bit Windows binaries, lib-vc2022). Feel free to download appropriate for you and replace existing one.

Running example:

  • Compile using mvn clean package
  • Run from target with path to dll directory:
java --enable-native-access=opengl.ffm --module-path opengl-ffm-0.1-SNAPSHOT.jar --module opengl.ffm/ru.fdoke.ffm.opengl.App ../dll/

Exmaple

Description

With new FFM Api in Java 18 there are a lot of possibilities of direct usage of native libraries. This project uses OPENGL/GLFW dll's to open a window and draw a triangle. It's raw and should not be concerned as the proper way of using it (but I will try to improve it).

Caution

The FFM Api feature is in incubator state, and I don't know when it will make to release, so this code probably will break one day.