Replies: 2 comments 5 replies
-
The emulate anotation is a solution I got it to work that replace the original code with a custom. the magic is inside TeaClassTransformer class plugin. What it does it remove everything from the original class and replace it with the class that use the Emulate annotation during the build process. All methods must contain the same identity (name, return and params) as the original class. There is also the teavm way of doing this. It is by using resources/META-INF/teavm.properties file. You can see here https://github.com/xpenatan/gdx-imgui/blob/master/imgui/imgui-teavm/src/main/resources/META-INF/teavm.properties. There are some examples of this in teavm test folders.
You wont see any imgui class in github because its all generated. |
Beta Was this translation helpful? Give feedback.
-
Thank you, got it working! |
Beta Was this translation helpful? Give feedback.
-
Hi,
I really like this project, good work! I want to migrate my existing libgdx application and need to implement some additional classlib classes/methods which are missing in TeaVM. How can I do this? I have seen that there is an @emulate annotation in gdx-teavm and there is also a separate directory of emulated classes. How can I do this for my own project?
Beta Was this translation helpful? Give feedback.
All reactions