Package javax.media.opengl

Examples of javax.media.opengl.GL.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


       
    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

        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

        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

      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

    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

        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

        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

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

  // ==================== Lines ====================
  public void drawLine(float x1, float y1, float x2, float y2) {
        startPrimitive(Primitive.LINE, null);
    GL gl = drawable.getGL();
        gl.glVertex2f(x1, y1);
        gl.glVertex2f(x2, y2);
       
  }
  private void applyLineWidth() {
    GL gl = drawable.getGL();
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.