Examples of glVertex3f()


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

        gl.glTranslatef(-1.5f, 0.0f, -10.0f);
        gl.glColor3f(0f, 255f, 255f);
        gl.glRotated(20,20,0,20);
        gl.glBegin(GL2.GL_TRIANGLES);
        gl.glVertex3f(0.0f, 1.0f, 0.0f);
        gl.glVertex3f(-1.0f, -1.0f, 0.0f);
        gl.glVertex3f(1.0f, -1.0f, 0.0f);
        gl.glEnd();

        gl.glTranslatef(3.0f, 0.0f, 0.0f);
        gl.glColor3f(0f,255f,0f);
View Full Code Here

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

        gl.glColor3f(0f, 255f, 255f);
        gl.glRotated(20,20,0,20);
        gl.glBegin(GL2.GL_TRIANGLES);
        gl.glVertex3f(0.0f, 1.0f, 0.0f);
        gl.glVertex3f(-1.0f, -1.0f, 0.0f);
        gl.glVertex3f(1.0f, -1.0f, 0.0f);
        gl.glEnd();

        gl.glTranslatef(3.0f, 0.0f, 0.0f);
        gl.glColor3f(0f,255f,0f);
        gl.glRotated(-20,-20,0,-20);
View Full Code Here

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

        gl.glTranslatef(3.0f, 0.0f, 0.0f);
        gl.glColor3f(0f,255f,0f);
        gl.glRotated(-20,-20,0,-20);
        gl.glBegin(GL2.GL_QUADS);
        gl.glVertex3f(-1.0f, 1.0f, 0.0f);
        gl.glVertex3f(1.0f, 1.0f, 0.0f);
        gl.glVertex3f(1.0f, -1.0f, 0.0f);
        gl.glVertex3f(-1.0f, -1.0f, 0.0f);
        gl.glEnd();
View Full Code Here

Examples of org.lwjgl.test.opengles.util.ImmediateModeBuffer.glVertex3f()

    lastDrawIndex += gear.addDrawCommand(GL_TRIANGLE_STRIP, lastDrawIndex, teeth * 4 + 2);
    for ( i = 0; i <= teeth; i++ ) {
      angle = i * 2.0f * (float)Math.PI / teeth;

      imb.glNormal3f(0.0f, 0.0f, 1.0f);
      imb.glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5f);

      imb.glNormal3f(0.0f, 0.0f, 1.0f);
      imb.glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5f);

      if ( i < teeth ) {
View Full Code Here

Examples of org.lwjgl.test.opengles.util.ImmediateModeBuffer.glVertex3f()

      imb.glNormal3f(0.0f, 0.0f, 1.0f);
      imb.glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5f);

      imb.glNormal3f(0.0f, 0.0f, 1.0f);
      imb.glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5f);

      if ( i < teeth ) {
        imb.glNormal3f(0.0f, 0.0f, 1.0f);
        imb.glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5f);

 
View Full Code Here

Examples of org.lwjgl.test.opengles.util.ImmediateModeBuffer.glVertex3f()

      imb.glNormal3f(0.0f, 0.0f, 1.0f);
      imb.glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5f);

      if ( i < teeth ) {
        imb.glNormal3f(0.0f, 0.0f, 1.0f);
        imb.glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5f);

        imb.glNormal3f(0.0f, 0.0f, 1.0f);
        imb.glVertex3f(r1 * cos(angle + 3.0f * da), r1 * sin(angle + 3.0f * da), width * 0.5f);
      }
    }
 
View Full Code Here

Examples of org.lwjgl.test.opengles.util.ImmediateModeBuffer.glVertex3f()

      if ( i < teeth ) {
        imb.glNormal3f(0.0f, 0.0f, 1.0f);
        imb.glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5f);

        imb.glNormal3f(0.0f, 0.0f, 1.0f);
        imb.glVertex3f(r1 * cos(angle + 3.0f * da), r1 * sin(angle + 3.0f * da), width * 0.5f);
      }
    }

    // draw front sides of teeth
    for ( i = 0; i < teeth; i++ ) {
View Full Code Here

Examples of org.lwjgl.test.opengles.util.ImmediateModeBuffer.glVertex3f()

      lastDrawIndex += gear.addDrawCommand(GL_TRIANGLE_STRIP, lastDrawIndex, 4);

      angle = i * 2.0f * (float)Math.PI / teeth;

      imb.glNormal3f(0.0f, 0.0f, 1.0f);
      imb.glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5f);

      imb.glNormal3f(0.0f, 0.0f, 1.0f);
      imb.glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), width * 0.5f);

      imb.glNormal3f(0.0f, 0.0f, 1.0f);
View Full Code Here

Examples of org.lwjgl.test.opengles.util.ImmediateModeBuffer.glVertex3f()

      imb.glNormal3f(0.0f, 0.0f, 1.0f);
      imb.glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5f);

      imb.glNormal3f(0.0f, 0.0f, 1.0f);
      imb.glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), width * 0.5f);

      imb.glNormal3f(0.0f, 0.0f, 1.0f);
      imb.glVertex3f(r1 * cos(angle + 3.0f * da), r1 * sin(angle + 3.0f * da), width * 0.5f);

      imb.glNormal3f(0.0f, 0.0f, 1.0f);
View Full Code Here

Examples of org.lwjgl.test.opengles.util.ImmediateModeBuffer.glVertex3f()

      imb.glNormal3f(0.0f, 0.0f, 1.0f);
      imb.glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), width * 0.5f);

      imb.glNormal3f(0.0f, 0.0f, 1.0f);
      imb.glVertex3f(r1 * cos(angle + 3.0f * da), r1 * sin(angle + 3.0f * da), width * 0.5f);

      imb.glNormal3f(0.0f, 0.0f, 1.0f);
      imb.glVertex3f(r2 * cos(angle + 2.0f * da), r2 * sin(angle + 2.0f * da), width * 0.5f);
    }

 
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.