本文整理汇总了Java中javafx.scene.ParallelCamera类的典型用法代码示例。如果您正苦于以下问题:Java ParallelCamera类的具体用法?Java ParallelCamera怎么用?Java ParallelCamera使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ParallelCamera类属于javafx.scene包,在下文中一共展示了ParallelCamera类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import javafx.scene.ParallelCamera; //导入依赖的package包/类
/**
* Inits the game itself
* @param stage
*/
@Override
public void init(Stage stage)
{
// JavaFX-Szenengraph Wurzel
Group root = new Group();
// Kameraeinstellungen
ParallelCamera cam = new ParallelCamera();
cam.setNearClip(0.1);
cam.setFarClip(2000.0);
// Setzen der Kamera und Fenstergröße
Scene scene = new Scene(root,W_WIDTH,W_HEIGHT,true);
scene.setCamera(cam);
// Initialisieren des LevelLoaders
this.level = LevelLoader.getInstance(root);
// Fenstereinstellungen der Anwendung
stage.setWidth(W_WIDTH);
stage.setHeight(W_HEIGHT);
stage.setResizable(false);
stage.setScene(scene);
stage.setTitle("Verse - Jan-Philipp Roslan");
stage.show();
}
示例2: testGetParallelCameraAdjuster
import javafx.scene.ParallelCamera; //导入依赖的package包/类
@Test
public void testGetParallelCameraAdjuster() {
Adjuster adjuster = Adjuster.getAdjuster(ParallelCamera.class);
assertThat(adjuster, is(instanceOf(NodeAdjuster.class)));
assertThat(adjuster.getNodeClass(), is(sameInstance(Node.class)));
}
示例3: buildCamera
import javafx.scene.ParallelCamera; //导入依赖的package包/类
@Override
protected Camera buildCamera() {
return new ParallelCamera();
}
示例4: addCamera
import javafx.scene.ParallelCamera; //导入依赖的package包/类
@Override
protected Camera addCamera(Scene scene) {
ParallelCamera pc = new ParallelCamera();
scene.setCamera(pc);
return pc;
}
示例5: addCamera
import javafx.scene.ParallelCamera; //导入依赖的package包/类
@Override
protected Camera addCamera(Scene scene) {
ParallelCamera parallelCamera = new ParallelCamera();
scene.setCamera(parallelCamera);
return parallelCamera;
}
示例6: addCamera
import javafx.scene.ParallelCamera; //导入依赖的package包/类
@Override
protected Camera addCamera(SubScene scene) {
ParallelCamera parallelCamera = new ParallelCamera();
scene.setCamera(parallelCamera);
return parallelCamera;
}
示例7: addCamera
import javafx.scene.ParallelCamera; //导入依赖的package包/类
@Override
protected Camera addCamera(SubScene scene) {
ParallelCamera camera = new ParallelCamera();
scene.setCamera(camera);
return camera;
}
示例8: addCamera
import javafx.scene.ParallelCamera; //导入依赖的package包/类
private Camera addCamera(Scene scene) {
ParallelCamera pc = new ParallelCamera();
scene.setCamera(pc);
return pc;
}