JPro-one / JPro-Tickets

The right place to report about bugs or suggest improvements for JPro.
https://www.jpro.one
9 stars 4 forks source link

ConditionalFeature.SCENE3D #87

Open mipastgt opened 3 years ago

mipastgt commented 3 years ago

As of today JPro does not support JavaFX3D (as stated in the documentation) but why does this line of code

System.out.println("SCENE3D supported: " + Platform.isSupported(ConditionalFeature.SCENE3D));

then produce the output

SCENE3D supported: true

I tried to prepare my code for JPro by testing the conditional features but that does not seem to work.

FlorianKirmaier commented 3 years ago

That's a good question. The Conditional Features should also reflect the situation when using JPro - which isn't the cast at the moment. Do you check the flag incode to dynamically enable/disable features, or did you just manually check the flag to check what we support? We will soon release a new version, so if it helps we can quickly provide a preview version, which shows the value correctly.

mipastgt commented 3 years ago

I used the checks in my code to dynamically change the implementation of certain features which are not supported by JPro (or other technologies like GraalVM/native-image) yet. I have now added a manually set property to check these conditions.