Package javax.media.opengl

Examples of javax.media.opengl.GL2.glEnd()


            gl.glTexCoord2f(textureRight, textureTop);
            gl.glVertex3f(1.0f, 1.0f, 0.0f);

            gl.glTexCoord2f(textureLeft, textureTop);
            gl.glVertex3f(0.0f, 1.0f, 0.0f);
        gl.glEnd();
    }

    /**
     *  Called back before the OpenGL context is destroyed. Release resource such as buffers
     */   
View Full Code Here


            gl.glTexCoord2f(textureRight, textureTop);
            gl.glVertex3f(1.0f, 1.0f, 0.0f);

            gl.glTexCoord2f(textureLeft, textureTop);
            gl.glVertex3f(0.0f, 1.0f, 0.0f);
        gl.glEnd();
    }

    /**
     *  Called back before the OpenGL context is destroyed. Release resource such as buffers
     */   
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.