Examples of BlendTransition


Examples of org.mt4j.sceneManagement.transition.BlendTransition

//    list.setPositionGlobal(new Vector3D(app.width/2f - list.getWidthXY(TransformSpace.GLOBAL)/2f, app.height - 20));
    getCanvas().setFrustumCulling(true);
   
    //Scene transition effect
    if (this.hasFBO){
      this.setTransition(new BlendTransition(app, 730))
    }else{
      this.setTransition(new FadeTransition(app, 730))
    }
  }
View Full Code Here

Examples of org.mt4j.sceneManagement.transition.BlendTransition

          final Iscene scene = createScene.getNewScene();
             
          if (!switchDirectlyToScene){//We have FBO support -> show scene in a window first
           
            if (hasFBO && scene instanceof AbstractScene){
              ((AbstractScene) scene).setTransition(new BlendTransition(app, 300))
            }
           
            final MTSceneWindow sceneWindow = new MTSceneWindow(scene, 100,50, app);
            sceneWindow.setFillColor(new MTColor(50,50,50,200));
            sceneWindow.scaleGlobal(0.5f, 0.5f, 0.5f, sceneWindow.getCenterPointGlobal());
View Full Code Here

Examples of org.mt4j.sceneManagement.transition.BlendTransition

    getCanvas().addChild(nextSceneButton);
    nextSceneButton.setPositionGlobal(new Vector3D(mtApp.width - nextSceneButton.getWidthXY(TransformSpace.GLOBAL) - 5, mtApp.height - nextSceneButton.getHeightXY(TransformSpace.GLOBAL) - 5, 0));
   
    //Set a scene transition - Flip transition only available using opengl supporting the FBO extenstion
    if (MT4jSettings.getInstance().isOpenGlMode() && GLFBO.isSupported(mtApp))
      this.setTransition(new BlendTransition(mtApp, 700));
    else{
      this.setTransition(new FadeTransition(mtApplication, 1700));
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.