Example usage for javafx.application ConditionalFeature SCENE3D

List of usage examples for javafx.application ConditionalFeature SCENE3D

Introduction

In this page you can find the example usage for javafx.application ConditionalFeature SCENE3D.

Prototype

ConditionalFeature SCENE3D

To view the source code for javafx.application ConditionalFeature SCENE3D.

Click Source Link

Document

Indicates that 3D is available on the platform.

Usage

From source file:net.rptools.tokentool.client.TokenTool.java

@Override
public void init() throws Exception {
    appInstance = this;
    VERSION = getVersion();// ww  w  .  jav  a 2  s . c  o  m

    // Lets install/update the overlays if newer version
    AppSetup.install(VERSION);
    log = LogManager.getLogger(TokenTool.class);
    log.info("3D Hardware Available? " + Platform.isSupported(ConditionalFeature.SCENE3D));

    // Now lets cache any overlays we find and update preLoader with progress
    overlayCount = (int) Files.walk(AppConstants.OVERLAY_DIR.toPath()).filter(Files::isRegularFile).count();
    overlayTreeItems = cacheOverlays(AppConstants.OVERLAY_DIR, null, THUMB_SIZE);

    // All Done!
    notifyPreloader(new Preloader.ProgressNotification(1.0));
}