Search in sources :

Example 6 with Transform

use of javafx.scene.transform.Transform in project FXyzLib by Birdasaur.

the class Skybox method startTimer.

private void startTimer() {
    timer = new AnimationTimer() {

        @Override
        public void handle(long now) {
            Transform ct = (camera != null) ? camera.getLocalToSceneTransform() : null;
            if (ct != null) {
                affine.setTx(ct.getTx());
                affine.setTy(ct.getTy());
                affine.setTz(ct.getTz());
            }
        }
    };
    timer.start();
}
Also used : AnimationTimer(javafx.animation.AnimationTimer) Transform(javafx.scene.transform.Transform)

Aggregations

Transform (javafx.scene.transform.Transform)6 HashMap (java.util.HashMap)4 List (java.util.List)4 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)4 Collectors (java.util.stream.Collectors)4 DoubleStream (java.util.stream.DoubleStream)4 IntStream (java.util.stream.IntStream)4 DoubleProperty (javafx.beans.property.DoubleProperty)4 IntegerProperty (javafx.beans.property.IntegerProperty)4 ObjectProperty (javafx.beans.property.ObjectProperty)4 SimpleDoubleProperty (javafx.beans.property.SimpleDoubleProperty)4 SimpleIntegerProperty (javafx.beans.property.SimpleIntegerProperty)4 SimpleObjectProperty (javafx.beans.property.SimpleObjectProperty)4 Point2D (javafx.geometry.Point2D)4 DepthTest (javafx.scene.DepthTest)4 CullFace (javafx.scene.shape.CullFace)4 DrawMode (javafx.scene.shape.DrawMode)4 TriangleMesh (javafx.scene.shape.TriangleMesh)4 Affine (javafx.scene.transform.Affine)4 NonInvertibleTransformException (javafx.scene.transform.NonInvertibleTransformException)4