Examples of CursorTracer


Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

    super(mtApplication, name);
   
    MTColor white = new MTColor(255,255,255);
    this.setClearColor(new MTColor(146, 150, 188, 255));
    //Show touches
    this.registerGlobalInputProcessor(new CursorTracer(mtApplication, this));
   
    IFont fontArial = FontManager.getInstance().createFont(mtApplication, "arial.ttf",
        50,   //Font size
        white,  //Font fill color
        white)//Font outline color
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

  public SVGScene(MTApplication mtApplication, String name) {
    super(mtApplication, name);
   
    this.setClearColor(new MTColor(255, 255, 255, 255));
    //Show touches
    this.registerGlobalInputProcessor(new CursorTracer(mtApplication, this));
   
    MTSvg svg = new MTSvg(mtApplication, svgPath + "windmill.svg");
    svg.setPositionGlobal(new Vector3D(mtApplication.width/2, mtApplication.height/2,0));
    this.getCanvas().addChild(svg);
   
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

    this.mtApp = mtApplication;
   
    //Set the background color
    this.setClearColor(new MTColor(146, 150, 188, 255));
   
    this.registerGlobalInputProcessor(new CursorTracer(mtApp, this));
   
    //Create a textfield
    MTTextArea textField = new MTTextArea(mtApplication, FontManager.getInstance().createFont(mtApp, "arial.ttf",
        50, new MTColor(255, 255, 255, 255), new MTColor(255, 255, 255, 255)));
    textField.setNoFill(true);
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

   
//    this.setClearColor(new MTColor(135, 206, 250, 255));
    this.setClearColor(new MTColor(70, 70, 72, 255));
   
    //Show touches
    this.registerGlobalInputProcessor(new CursorTracer(mtAppl, this));
   
    //Add multitouch gestures to the canvas background
    lassoProcessor  = new LassoProcessor(app, this.getCanvas(), this.getSceneCam());
    this.getCanvas().registerInputProcessor(lassoProcessor);
    this.getCanvas().addGestureListener(LassoProcessor.class, new DefaultLassoAction(app, this.getCanvas().getClusterManager(), this.getCanvas()));
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

 
  public MTGesturesExampleScene(MTApplication mtApplication, String name) {
    super(mtApplication, name);
    this.app = mtApplication;
    this.setClearColor(new MTColor(126, 130, 168, 255));
    this.registerGlobalInputProcessor(new CursorTracer(app, this));

    float verticalPad = 53;
    float horizontalPad = 500;
   
    MTColor white = new MTColor(255,255,255);
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

//    Vec2 gravity = new Vec2(0, 0);
    boolean sleep = true;
    //Create the pyhsics world
    this.world = new World(worldAABB, gravity, sleep);
   
    this.registerGlobalInputProcessor(new CursorTracer(app, this));
   
    //Update the positions of the components according the the physics simulation each frame
    this.registerPreDrawAction(new UpdatePhysicsAction(world, timeStep, constraintIterations, scale));
   
    physicsContainer = new MTComponent(app);
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

   
    if (!(MT4jSettings.getInstance().isOpenGlMode() && GLFBO.isSupported(pa))){
      System.err.println("Drawing example can only be run in OpenGL mode on a gfx card supporting the GL_EXT_framebuffer_object extension!");
      return;
    }
    this.registerGlobalInputProcessor(new CursorTracer(mtApplication, this));
   
    //Create window frame
        MTRoundRectangle frame = new MTRoundRectangle(-50,-50, 0, pa.width+100, pa.height+100, 25,25, pa);
        frame.setSizeXYGlobal(pa.width-10, pa.height-10);
        this.getCanvas().addChild(frame);
View Full Code Here

Examples of org.mt4j.input.inputProcessors.globalProcessors.CursorTracer

    this.app = mtApplication;
//    this.setClearColor(new MTColor(120,150,150));
//    this.setClearColor(new MTColor(190, 190, 170, 255));
    this.setClearColor(new MTColor(0, 0, 0, 255));
//    this.setClearColor(new MTColor(40, 40, 40, 255));
    this.registerGlobalInputProcessor(new CursorTracer(app, this));
   
    this.scorePlayer1 = 0;
    this.scorePlayer2 = 0;
   
    float worldOffset = 10; //Make Physics world slightly bigger than screen borders
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.