Package cc.plural.ecs.renderer

Examples of cc.plural.ecs.renderer.OrthogonalProjection


    }

    public abstract void init();

    public void setOrthoProjection(float left, float right, float top, float bottom, float near, float far) {
        projection = new OrthogonalProjection(left, right, top, bottom, near, far);
        projection.load(projectionMatrix);
    }
View Full Code Here


     * Test of setMatrix2D method, of class OrthogonalProjection.
     */
    public void testSetMatrix2D() {
        System.out.println("setMatrix2D");
        Matrix4f matrix = Matrix4f.identity();
        OrthogonalProjection instance = new OrthogonalProjection(0, 800, 600, 0, 0, 1);
       
       
        Matrix4f expResult = null;
        Matrix4f result = instance.setMatrix2D(matrix);
        System.out.println(result);
        result.print(4, 4);
    }
View Full Code Here

            System.out.print("" + matrix44Buffer.get() + " ");
        }
        System.out.println();

        Matrix4f matrix = Matrix4f.identity();
        OrthogonalProjection instance = new OrthogonalProjection(0, 8, 6, 0);
        Matrix4f expResult = null;
        instance.load(matrix);

        //FloatBuffer matrix44Buffer = BufferUtils.createFloatBuffer(16);
        matrix44Buffer.flip();
        matrix.loadColumnMajor(matrix44Buffer);
        matrix44Buffer.flip();
View Full Code Here

TOP

Related Classes of cc.plural.ecs.renderer.OrthogonalProjection

Copyright © 2018 www.massapicom. 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.