Package xenon3d.scene

Examples of xenon3d.scene.GraphicsContext3D


            }
           
            @Override
            public void render() {
                System.out.println("Canvas3D.render()");
                GraphicsContext3D gc = GraphicsContext3D.getGC();
    GL2 gl = gc.getGL();
    gl.glTranslatef(-1.5f, 0.0f, -6.0f);
    gl.glBegin(GL2.GL_TRIANGLES);
    gl.glVertex3f( 0.0f1.0f, 0.0f);
    gl.glVertex3f(-1.0f, -1.0f, 0.0f);
    gl.glVertex3f( 1.0f, -1.0f, 0.0f);
View Full Code Here


            }
           
            @Override
            public void render() {
                System.out.println("Canvas3D.render()");
                GraphicsContext3D gc = GraphicsContext3D.getGC();
                gc.beginTransform();
                gc.setTransform(tri_trans);
                gc.draw(tri_geo);
                gc.endTransform();
                gc.beginTransform();
                gc.setTransform(quad_trans);
                gc.apply(quad_app);
                gc.draw(quad_geo);
                gc.endTransform();
            }
           
            @Override
            public void postRender() {
                System.out.println("Canvas3D.postRender()");
View Full Code Here

TOP

Related Classes of xenon3d.scene.GraphicsContext3D

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.