Examples of gluLookAt()


Examples of javax.media.opengl.glu.GLU.gluLookAt()

                    gl.glMatrixMode(GL.GL_PROJECTION);
                    gl.glLoadIdentity();
                    GLU glu = new GLU();
                    glu.gluPerspective(vport.getFOV(), vport.getAspect(), vport
                            .getMinZ(), vport.getMaxZ());
                    glu.gluLookAt(vport.getViewWorldX(), vport.getViewWorldY(),
                            -vport.getZ(), vport.getViewWorldX(), vport
                                    .getViewWorldY(), 0, 0, -1, 0);
                    if (res != null) {
                        for (AbstractLayer l : world.getLayers())
                            l.paint(gl);
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.