Examples of glVertex2f()


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

        gl.glTexCoord2f(texRight, texTop);
        gl.glVertex2f(width, 0);

        gl.glTexCoord2f(texRight, texBottom);
        gl.glVertex2f(width, height);
   
        gl.glTexCoord2f(texLeft, texBottom);
        gl.glVertex2f(0, height);
  }
View Full Code Here

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

        gl.glTexCoord2f(texRight, texBottom);
        gl.glVertex2f(width, height);
   
        gl.glTexCoord2f(texLeft, texBottom);
        gl.glVertex2f(0, height);
  }

  public void drawImage(ch.blackspirit.graphics.Image image, float width, float height, int subImageX, int subImageY, int subImageWidth, int subImageHeight, Flip flip) {
    if (image == null) throw new IllegalArgumentException("image must not be null");
View Full Code Here

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

      texLeft = texRight;
      texRight = temp;
    }

    gl.glTexCoord2f(texLeft, texTop);
        gl.glVertex2f(0, 0);

        gl.glTexCoord2f(texRight, texTop);
        gl.glVertex2f(width, 0);

        gl.glTexCoord2f(texRight, texBottom);
View Full Code Here

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

    gl.glTexCoord2f(texLeft, texTop);
        gl.glVertex2f(0, 0);

        gl.glTexCoord2f(texRight, texTop);
        gl.glVertex2f(width, 0);

        gl.glTexCoord2f(texRight, texBottom);
        gl.glVertex2f(width, height);

        gl.glTexCoord2f(texLeft, texBottom);
View Full Code Here

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

        gl.glTexCoord2f(texRight, texTop);
        gl.glVertex2f(width, 0);

        gl.glTexCoord2f(texRight, texBottom);
        gl.glVertex2f(width, height);

        gl.glTexCoord2f(texLeft, texBottom);
        gl.glVertex2f(0, height);

  }
View Full Code Here

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

        gl.glTexCoord2f(texRight, texBottom);
        gl.glVertex2f(width, height);

        gl.glTexCoord2f(texLeft, texBottom);
        gl.glVertex2f(0, height);

  }
 
  // ==================== Points ====================
  public void drawPoint(float x, float y) {
View Full Code Here

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

 
  // ==================== Points ====================
  public void drawPoint(float x, float y) {
    startPrimitive(Primitive.POINT, null);
    GL2 gl = drawable.getGL().getGL2();
        gl.glVertex2f(x, y);
  }
  private void applyPointSize() {
    GL2 gl = drawable.getGL().getGL2();
    gl.glPointSize(pointDiameter);
  }
View Full Code Here

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

  // ==================== Lines ====================
  public void drawLine(float x1, float y1, float x2, float y2) {
        startPrimitive(Primitive.LINE, null);
    GL2 gl = drawable.getGL().getGL2();
        gl.glVertex2f(x1, y1);
        gl.glVertex2f(x2, y2);
       
  }
  private void applyLineWidth() {
    GL2 gl = drawable.getGL().getGL2();
View Full Code Here

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

  // ==================== Lines ====================
  public void drawLine(float x1, float y1, float x2, float y2) {
        startPrimitive(Primitive.LINE, null);
    GL2 gl = drawable.getGL().getGL2();
        gl.glVertex2f(x1, y1);
        gl.glVertex2f(x2, y2);
       
  }
  private void applyLineWidth() {
    GL2 gl = drawable.getGL().getGL2();
    gl.glLineWidth(lineWidth);
View Full Code Here

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

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