Package javax.media.opengl

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


    @Override
    void endDisplayList(Context ctx) {
        if (VERBOSE) System.err.println("JoglPipeline.endDisplayList()");
    GL2 gl = context(ctx).getGL().getGL2();
        gl.glEndList();
    }

    int numInvalidLists = 0;
    @Override
    void callDisplayList(Context ctx, int id, boolean isNonUniformScale) {
View Full Code Here


    /* make the gears */
    gear1 = gl.glGenLists(1);
    gl.glNewList(gear1, GL2.GL_COMPILE);
    gl.glMaterialfv(GL2.GL_FRONT, GL2.GL_AMBIENT_AND_DIFFUSE, red, 0);
    gear(gl, 1.0f, 4.0f, 1.0f, 20, 0.7f);
    gl.glEndList();
           
    gear2 = gl.glGenLists(1);
    gl.glNewList(gear2, GL2.GL_COMPILE);
    gl.glMaterialfv(GL2.GL_FRONT, GL2.GL_AMBIENT_AND_DIFFUSE, green, 0);
    gear(gl, 0.5f, 2.0f, 2.0f, 10, 0.7f);
View Full Code Here

           
    gear2 = gl.glGenLists(1);
    gl.glNewList(gear2, GL2.GL_COMPILE);
    gl.glMaterialfv(GL2.GL_FRONT, GL2.GL_AMBIENT_AND_DIFFUSE, green, 0);
    gear(gl, 0.5f, 2.0f, 2.0f, 10, 0.7f);
    gl.glEndList();
           
    gear3 = gl.glGenLists(1);
    gl.glNewList(gear3, GL2.GL_COMPILE);
    gl.glMaterialfv(GL2.GL_FRONT, GL2.GL_AMBIENT_AND_DIFFUSE, blue, 0);
    gear(gl, 1.3f, 2.0f, 0.5f, 10, 0.7f);
View Full Code Here

           
    gear3 = gl.glGenLists(1);
    gl.glNewList(gear3, GL2.GL_COMPILE);
    gl.glMaterialfv(GL2.GL_FRONT, GL2.GL_AMBIENT_AND_DIFFUSE, blue, 0);
    gear(gl, 1.3f, 2.0f, 0.5f, 10, 0.7f);
    gl.glEndList();
           
    gl.glEnable(GL2.GL_NORMALIZE);
               
    if (drawable instanceof AWTGLAutoDrawable) {
        AWTGLAutoDrawable awtDrawable = (AWTGLAutoDrawable) drawable;
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.