Examples of Triangle


Examples of stephencarmody.k8.core.Triangle

        secs = (float) elapsed / 1000000000;
        fps = Math.round((float)Application.frame()/secs);
        text.setText(TexturedTriangles.count + " @ " + fps + " fps");
       
        if ( fps != lastfps ) {
          t1 = new Triangle();
            t1.texture(Main.wood);
            t1.vertices(0, fps, 0, 0, 0, 0, 1, fps, 0);
            t1.texCoords(0,0,0,1,1,0);
            t2 = new Triangle();
            t2.texture(Main.wood);
            t2.vertices(0, 0, 0, 1, 0, 0, 1, fps, 0);
            t2.texCoords(0,1,1,1,1,0);
            t1.appendChild(t2);
            t1.moveRight(x);
View Full Code Here

Examples of stephencarmody.k8.core.Triangle

      paused = !paused;
    }

    /** Called n times a second, where n is defined by setUpdateRate(n). */
    public void update(long time) {
        t1 = new Triangle();
        t1.texture(Main.wood);
        t1.vertices(-1, 1, 0, 1, 0, 0, 0, 2, 0);
        t1.texCoords(0,0,0,1,1,0);
        t2 = new Triangle();
        t2.texture(Main.wood);
        t2.vertices(-1, 1, 0, 0, 2, 0, 1, 0, 0);
        t2.texCoords(0,0,0,1,1,0);
        t1.appendChild(t2);
       
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.