Comments (1)
I got (1) working. To generate the jni-config use:
$GRAALVM_HOME/bin/java -agentlib:native-image-agent=config-output-dir=META-INF/native-image,no-builtin-caller-filter -jar jaylib-example-project-1.0-SNAPSHOT-all.jar
Then edit reflect-config.json
and add these extra fields to every entry:
{
"name":"com.raylib.Raylib$Texture",
"allDeclaredFields":true,
"allPublicConstructors" : true,
"allPublicFields": true,
"allDeclaredMethods": true,
"allPublicMethods": true
},
The native-image.properties
should contain:
Args = --no-fallback --allow-incomplete-classpath
However in the end the performance is pretty poor, so no point in this approach for performance. (Might be if you have some other reason like wanting to run on iOS where you cant run JIT.)
from jaylib.
Related Issues (20)
- Cross platform deployment HOT 7
- Add to Github/Maven Packages HOT 1
- Jaylib.java wont compile - defined twice - public static class Rectangle extends Raylib.Rectangle HOT 1
- Can't make a Rectangle() with four arguments. HOT 8
- Rework buildsystem to support maven publishing, better unit tests, and cross-platform development
- bug with Rectangle() HOT 5
- [Proposal] Use the Project Panama FFI HOT 1
- Texture vs Texture2D HOT 3
- RLGL and raymath HOT 3
- How to choose the OpenGL version HOT 3
- [Proposal] Use GraalVM Polyglot HOT 2
- Plans to upgrade to Raylib 4.0? HOT 2
- Some image manipulation functions don't work HOT 4
- DrawTextEx takes a vector and not a font HOT 2
- textures crash the program HOT 7
- Publish on maven repo HOT 8
- More testing and examples HOT 2
- include raygui (RayLib GUI) and physac HOT 6
- Fixing HighDPI causes text blurring issue in jaylib doesn't works! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jaylib.