Examples of MTBackgroundImage


Examples of org.mt4j.components.visibleComponents.widgets.MTBackgroundImage

   
    this.setClearColor(new MTColor(200, 200, 200, 255));
    this.registerGlobalInputProcessor(new CursorTracer(pa, this));
   
    //Add a background image for the scene
    this.getCanvas().addChild(new MTBackgroundImage(pa, pa.loadImage(imagesPath + "3040.jpg"), true));
   
    //Init light settings
    MTLight.enableLightningAndAmbient(pa, 150, 150, 150, 255);
    //Create a light source //I think GL_LIGHT0 is used by processing!
//    MTLight light = new MTLight(pa, GL.GL_LIGHT3, new Vector3D(0,0,0));
View Full Code Here

Examples of org.mt4j.components.visibleComponents.widgets.MTBackgroundImage

    this.setClearColor(new MTColor(55,55,55));
    this.registerGlobalInputProcessor(new CursorTracer(mtApplication, this));
    this.getCanvas().setDepthBufferDisabled(true); //to avoid display errors because everything is 2D
   
    MTBackgroundImage background = new MTBackgroundImage(mtApplication, mtApplication.loadImage(imagesPath + "webtreats_wood-pattern1-512d.jpg") , true);
    this.getCanvas().addChild(background);
   
    this.puzzleGroup = new MTComponent(mtApplication);
    this.getCanvas().addChild(puzzleGroup);
   
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.