Examples of glVertex2f()


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

       
            p = t.getPoint(2);
        c = t.getColor(2);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
            gl.glVertex2f(p.x, p.y);
      }
      // reset color;
      applyColor();
    } else {
      for(int i = 0; i < triangles.length; i++) {
View Full Code Here

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

    } else {
      for(int i = 0; i < triangles.length; i++) {
        Triangle t = triangles[i];
        if(t == null) continue;
        p = t.getPoint(0);
            gl.glVertex2f(p.x, p.y);
        p = t.getPoint(1);
            gl.glVertex2f(p.x, p.y);
        p = t.getPoint(2);
            gl.glVertex2f(p.x, p.y);
      }
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.