Examples of glRotatef()


Examples of javax.media.opengl.GL.glRotatef()

   
    gl.glPolygonMode(GL.GL_FRONT_AND_BACK, render_mode);
    gl.glCullFace(GL.GL_FRONT);
    gl.glEnable(GL.GL_CULL_FACE);/**/
   
        gl.glRotatef(xRot, 1f, 0f, 0f);
        gl.glRotatef(yRot, 0f, 1f, 0f);
        gl.glRotatef(zRot, 0f, 0f, 1f);

        // render the mechs
    for(int x=0;x<16;x++){
View Full Code Here

Examples of javax.media.opengl.GL.glRotatef()

    gl.glPolygonMode(GL.GL_FRONT_AND_BACK, render_mode);
    gl.glCullFace(GL.GL_FRONT);
    gl.glEnable(GL.GL_CULL_FACE);/**/
   
        gl.glRotatef(xRot, 1f, 0f, 0f);
        gl.glRotatef(yRot, 0f, 1f, 0f);
        gl.glRotatef(zRot, 0f, 0f, 1f);

        // render the mechs
    for(int x=0;x<16;x++){
      for(int y=0;y<16;y++){
View Full Code Here

Examples of javax.media.opengl.GL.glRotatef()

    gl.glCullFace(GL.GL_FRONT);
    gl.glEnable(GL.GL_CULL_FACE);/**/
   
        gl.glRotatef(xRot, 1f, 0f, 0f);
        gl.glRotatef(yRot, 0f, 1f, 0f);
        gl.glRotatef(zRot, 0f, 0f, 1f);

        // render the mechs
    for(int x=0;x<16;x++){
      for(int y=0;y<16;y++){
        mechNoLOT(gl, x, y);
View Full Code Here

Examples of javax.media.opengl.GL.glRotatef()

    float r0 = 0.5f;
    float width = .5f;
    float da = .7f;
    rot += 1.0f;
    gl.glPushMatrix();
    gl.glRotatef(30, 1.0f, 0, 0);
    gl.glRotatef(40, 0, 1.0f, 0);
    gl.glRotatef(50, 0, 0, 1.0f);
    gl.glRotatef(rot, 1.0f, 1.0f, 1.0f);
    gl.glMaterialfv(GL.GL_FRONT, GL.GL_AMBIENT_AND_DIFFUSE, red, 0);
    gl.glBegin(GL.GL_QUAD_STRIP);
View Full Code Here

Examples of javax.media.opengl.GL.glRotatef()

    float width = .5f;
    float da = .7f;
    rot += 1.0f;
    gl.glPushMatrix();
    gl.glRotatef(30, 1.0f, 0, 0);
    gl.glRotatef(40, 0, 1.0f, 0);
    gl.glRotatef(50, 0, 0, 1.0f);
    gl.glRotatef(rot, 1.0f, 1.0f, 1.0f);
    gl.glMaterialfv(GL.GL_FRONT, GL.GL_AMBIENT_AND_DIFFUSE, red, 0);
    gl.glBegin(GL.GL_QUAD_STRIP);
View Full Code Here

Examples of javax.media.opengl.GL.glRotatef()

    float da = .7f;
    rot += 1.0f;
    gl.glPushMatrix();
    gl.glRotatef(30, 1.0f, 0, 0);
    gl.glRotatef(40, 0, 1.0f, 0);
    gl.glRotatef(50, 0, 0, 1.0f);
    gl.glRotatef(rot, 1.0f, 1.0f, 1.0f);
    gl.glMaterialfv(GL.GL_FRONT, GL.GL_AMBIENT_AND_DIFFUSE, red, 0);
    gl.glBegin(GL.GL_QUAD_STRIP);

View Full Code Here

Examples of javax.media.opengl.GL.glRotatef()

    rot += 1.0f;
    gl.glPushMatrix();
    gl.glRotatef(30, 1.0f, 0, 0);
    gl.glRotatef(40, 0, 1.0f, 0);
    gl.glRotatef(50, 0, 0, 1.0f);
    gl.glRotatef(rot, 1.0f, 1.0f, 1.0f);
    gl.glMaterialfv(GL.GL_FRONT, GL.GL_AMBIENT_AND_DIFFUSE, red, 0);
    gl.glBegin(GL.GL_QUAD_STRIP);


    for (i = 0; i <= teeth; i++) {
View Full Code Here

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

    gl.glPopMatrix();
           
    // Place the third gear and call its display list
    gl.glPushMatrix();
    gl.glTranslatef(-3.1f, 4.2f, 0.0f);
    gl.glRotatef(-2.0f * angle - 25.0f, 0.0f, 0.0f, 1.0f);
    gl.glCallList(gear3);
    gl.glPopMatrix();
           
    // Remember that every push needs a pop; this one is paired with
    // rotating the entire gear assembly
View Full Code Here

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

    }
           
    // Rotate the entire assembly of gears based on how the user
    // dragged the mouse around
    gl.glPushMatrix();
    gl.glRotatef(view_rotx, 1.0f, 0.0f, 0.0f);
    gl.glRotatef(view_roty, 0.0f, 1.0f, 0.0f);
    gl.glRotatef(view_rotz, 0.0f, 0.0f, 1.0f);
           
    // Place the first gear and call its display list
    gl.glPushMatrix();
View Full Code Here

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

           
    // Rotate the entire assembly of gears based on how the user
    // dragged the mouse around
    gl.glPushMatrix();
    gl.glRotatef(view_rotx, 1.0f, 0.0f, 0.0f);
    gl.glRotatef(view_roty, 0.0f, 1.0f, 0.0f);
    gl.glRotatef(view_rotz, 0.0f, 0.0f, 1.0f);
           
    // Place the first gear and call its display list
    gl.glPushMatrix();
    gl.glTranslatef(-3.0f, -2.0f, 0.0f);
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.