Examples of glVertex2d()


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

      double halfWidth = 0.7;
      double halfHeight = 4;
      gl.glBegin(GL2.GL_QUADS);
      gl.glColor4f(1f, 1f, 1f, 0.5f);
      // vertical line
      gl.glVertex2d(centerX - halfWidth, centerY + halfHeight);
      gl.glVertex2d(centerX + halfWidth, centerY + halfHeight);
      gl.glVertex2d(centerX + halfWidth, centerY - halfHeight);
      gl.glVertex2d(centerX - halfWidth, centerY - halfHeight);
      // left part of horizontal line
      gl.glVertex2d(centerX - halfHeight, centerY + halfWidth);
View Full Code Here

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

      double halfHeight = 4;
      gl.glBegin(GL2.GL_QUADS);
      gl.glColor4f(1f, 1f, 1f, 0.5f);
      // vertical line
      gl.glVertex2d(centerX - halfWidth, centerY + halfHeight);
      gl.glVertex2d(centerX + halfWidth, centerY + halfHeight);
      gl.glVertex2d(centerX + halfWidth, centerY - halfHeight);
      gl.glVertex2d(centerX - halfWidth, centerY - halfHeight);
      // left part of horizontal line
      gl.glVertex2d(centerX - halfHeight, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY + halfWidth);
View Full Code Here

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

      gl.glBegin(GL2.GL_QUADS);
      gl.glColor4f(1f, 1f, 1f, 0.5f);
      // vertical line
      gl.glVertex2d(centerX - halfWidth, centerY + halfHeight);
      gl.glVertex2d(centerX + halfWidth, centerY + halfHeight);
      gl.glVertex2d(centerX + halfWidth, centerY - halfHeight);
      gl.glVertex2d(centerX - halfWidth, centerY - halfHeight);
      // left part of horizontal line
      gl.glVertex2d(centerX - halfHeight, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY - halfWidth);
View Full Code Here

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

      gl.glColor4f(1f, 1f, 1f, 0.5f);
      // vertical line
      gl.glVertex2d(centerX - halfWidth, centerY + halfHeight);
      gl.glVertex2d(centerX + halfWidth, centerY + halfHeight);
      gl.glVertex2d(centerX + halfWidth, centerY - halfHeight);
      gl.glVertex2d(centerX - halfWidth, centerY - halfHeight);
      // left part of horizontal line
      gl.glVertex2d(centerX - halfHeight, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY - halfWidth);
      gl.glVertex2d(centerX - halfHeight, centerY - halfWidth);
View Full Code Here

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

      gl.glVertex2d(centerX - halfWidth, centerY + halfHeight);
      gl.glVertex2d(centerX + halfWidth, centerY + halfHeight);
      gl.glVertex2d(centerX + halfWidth, centerY - halfHeight);
      gl.glVertex2d(centerX - halfWidth, centerY - halfHeight);
      // left part of horizontal line
      gl.glVertex2d(centerX - halfHeight, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY - halfWidth);
      gl.glVertex2d(centerX - halfHeight, centerY - halfWidth);
      // right part.
      gl.glVertex2d(centerX + halfWidth, centerY + halfWidth);
View Full Code Here

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

      gl.glVertex2d(centerX + halfWidth, centerY + halfHeight);
      gl.glVertex2d(centerX + halfWidth, centerY - halfHeight);
      gl.glVertex2d(centerX - halfWidth, centerY - halfHeight);
      // left part of horizontal line
      gl.glVertex2d(centerX - halfHeight, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY - halfWidth);
      gl.glVertex2d(centerX - halfHeight, centerY - halfWidth);
      // right part.
      gl.glVertex2d(centerX + halfWidth, centerY + halfWidth);
      gl.glVertex2d(centerX + halfHeight, centerY + halfWidth);
View Full Code Here

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

      gl.glVertex2d(centerX + halfWidth, centerY - halfHeight);
      gl.glVertex2d(centerX - halfWidth, centerY - halfHeight);
      // left part of horizontal line
      gl.glVertex2d(centerX - halfHeight, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY - halfWidth);
      gl.glVertex2d(centerX - halfHeight, centerY - halfWidth);
      // right part.
      gl.glVertex2d(centerX + halfWidth, centerY + halfWidth);
      gl.glVertex2d(centerX + halfHeight, centerY + halfWidth);
      gl.glVertex2d(centerX + halfHeight, centerY - halfWidth);
View Full Code Here

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

      gl.glVertex2d(centerX - halfWidth, centerY - halfHeight);
      // left part of horizontal line
      gl.glVertex2d(centerX - halfHeight, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY - halfWidth);
      gl.glVertex2d(centerX - halfHeight, centerY - halfWidth);
      // right part.
      gl.glVertex2d(centerX + halfWidth, centerY + halfWidth);
      gl.glVertex2d(centerX + halfHeight, centerY + halfWidth);
      gl.glVertex2d(centerX + halfHeight, centerY - halfWidth);
      gl.glVertex2d(centerX + halfWidth, centerY - halfWidth);
View Full Code Here

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

      gl.glVertex2d(centerX - halfHeight, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY - halfWidth);
      gl.glVertex2d(centerX - halfHeight, centerY - halfWidth);
      // right part.
      gl.glVertex2d(centerX + halfWidth, centerY + halfWidth);
      gl.glVertex2d(centerX + halfHeight, centerY + halfWidth);
      gl.glVertex2d(centerX + halfHeight, centerY - halfWidth);
      gl.glVertex2d(centerX + halfWidth, centerY - halfWidth);
      gl.glVertex3d(0, 0, 0);
      gl.glEnd();
View Full Code Here

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

      gl.glVertex2d(centerX - halfWidth, centerY + halfWidth);
      gl.glVertex2d(centerX - halfWidth, centerY - halfWidth);
      gl.glVertex2d(centerX - halfHeight, centerY - halfWidth);
      // right part.
      gl.glVertex2d(centerX + halfWidth, centerY + halfWidth);
      gl.glVertex2d(centerX + halfHeight, centerY + halfWidth);
      gl.glVertex2d(centerX + halfHeight, centerY - halfWidth);
      gl.glVertex2d(centerX + halfWidth, centerY - halfWidth);
      gl.glVertex3d(0, 0, 0);
      gl.glEnd();
    }
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.