Examples of glVertex2f()


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

 
          p = l.getPoint(1);
        c = l.getColor(1);
        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 < lines.length; i++) {
View Full Code Here

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

      for(int i = 0; i < lines.length; i++) {
        Line l = lines[i];
        if(l == null) continue;

        p = l.getPoint(0);
          gl.glVertex2f(p.x, p.y);
         
          p = l.getPoint(1);
          gl.glVertex2f(p.x, p.y);
      }
    }
View Full Code Here

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

        p = l.getPoint(0);
          gl.glVertex2f(p.x, p.y);
         
          p = l.getPoint(1);
          gl.glVertex2f(p.x, p.y);
      }
    }
  }
  public float getLineWidth() {
    return lineWidth;
View Full Code Here

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

 
  // ==================== Triangles ====================
  public void fillTriangle(float x1, float y1, float x2, float y2, float x3, float y3) {
        startPrimitive(Primitive.TRIANGLE, null);
    GL2 gl = drawable.getGL().getGL2();
        gl.glVertex2f(x1, y1);
        gl.glVertex2f(x3, y3);
        gl.glVertex2f(x2, y2);
  }
 
  private Triangle[] triangleArray = new Triangle[1];
View Full Code Here

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

  // ==================== Triangles ====================
  public void fillTriangle(float x1, float y1, float x2, float y2, float x3, float y3) {
        startPrimitive(Primitive.TRIANGLE, null);
    GL2 gl = drawable.getGL().getGL2();
        gl.glVertex2f(x1, y1);
        gl.glVertex2f(x3, y3);
        gl.glVertex2f(x2, y2);
  }
 
  private Triangle[] triangleArray = new Triangle[1];
  public void drawTriangle(Triangle triangle, boolean useColors) {
View Full Code Here

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

  public void fillTriangle(float x1, float y1, float x2, float y2, float x3, float y3) {
        startPrimitive(Primitive.TRIANGLE, null);
    GL2 gl = drawable.getGL().getGL2();
        gl.glVertex2f(x1, y1);
        gl.glVertex2f(x3, y3);
        gl.glVertex2f(x2, y2);
  }
 
  private Triangle[] triangleArray = new Triangle[1];
  public void drawTriangle(Triangle triangle, boolean useColors) {
    if (triangle == null) throw new IllegalArgumentException("triangle must not be null");
View Full Code Here

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

     
        p = t.getPoint(0);
        c = t.getColor(0);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
          gl.glVertex2f(p.x, p.y);
 
          p = t.getPoint(1);
        c = t.getColor(1);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
View Full Code Here

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

 
          p = t.getPoint(1);
        c = t.getColor(1);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
          gl.glVertex2f(p.x, p.y);

        p = t.getPoint(1);
        c = t.getColor(1);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
View Full Code Here

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

        p = t.getPoint(1);
        c = t.getColor(1);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
          gl.glVertex2f(p.x, p.y);
 
          p = t.getPoint(2);
        c = t.getColor(2);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
View Full Code Here

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);

        p = t.getPoint(2);
        c = t.getColor(2);
        if(c == null) c = color;
        gl.glColor4f(c.x, c.y, c.z, c.w);
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.