Replies: 2 comments
-
You want to know if WebGL is teavm or GWT ? I think we can use system property to check it. I added a useragent from javascript. We can add more properties. |
Beta Was this translation helpful? Give feedback.
0 replies
-
So the OR is mutually exclusive, which means I need to differentiate if its running TeaVM exclusively. Maybe an pseudo code if statement will explain it better:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need a way to determine if the application is running on teaVM in the core project other than using
ApplicationType.WebGL
I think this is an important question because I am sure that there are many existing libGDX projects and libraries that use
ApplicationType.WebGL
to point to native GWT methods.Now with teaVM, we can use full java/kotlin implementations.
Anyhow, is there any field or property that can be access in the core project that allows me to know if the application is running in TeaVM?
Side note: Should we ask libGDX maintainers to add
ApplicationType.TeaVM
?BTW, I have a solution to this problem but it is not elegant.
Beta Was this translation helpful? Give feedback.
All reactions