Examples of glLoadIdentity()


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

    // actualise la camera
    repaint(gl);

    gl.glMatrixMode(GL2.GL_MODELVIEW);
    gl.glLoadIdentity();
   
  }// fin reshape

  /* ******** DISPOSE ******** */

 
View Full Code Here

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

    this.repaint(gl);

    gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT);

    gl.glMatrixMode(GL2.GL_MODELVIEW);
    gl.glLoadIdentity();

    // dessine les cube
    this.render(gl);

    // aucune id�e
View Full Code Here

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

    // actualise la camera
    repaint(gl);

    gl.glMatrixMode(GL2.GL_MODELVIEW);
    gl.glLoadIdentity();
  }

  /* ******** DISPOSE ******** */

  public void dispose(GLAutoDrawable arg0) {
View Full Code Here

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

  config.setHeight(newHeight);

        GL2 gl = drawable.getGL().getGL2();

  gl.glViewport(0, 0, newWidth, newHeight);
  gl.glLoadIdentity();
  gl.glOrtho(-0.5f, newWidth - 0.5f, -0.5f, newHeight - 0.5f, -1.0f, 1.0f);

        julia3d.update(true);

    }
View Full Code Here

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

  config.setHeight(newHeight);

        GL2 gl = drawable.getGL().getGL2();

  gl.glViewport(0, 0, newWidth, newHeight);
  gl.glLoadIdentity();
  gl.glOrtho(-0.5f, newWidth - 0.5f, -0.5f, newHeight - 0.5f, -1.0f, 1.0f);

        julia3d.update(true);

    }
View Full Code Here

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

        gl.glFinish();

        computeHeightfield();

        gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT);
        gl.glLoadIdentity();

        usi.interact(gl);

        gl.glBindBuffer(GL2.GL_ARRAY_BUFFER, glObjects[VERTICES]);
        gl.glVertexPointer(4, GL2.GL_FLOAT, 0, 0);
View Full Code Here

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

    gl.glMatrixMode(GL2.GL_PROJECTION);

    System.err.println("GL_VENDOR: " + gl.glGetString(GL2.GL_VENDOR));
    System.err.println("GL_RENDERER: " + gl.glGetString(GL2.GL_RENDERER));
    System.err.println("GL_VERSION: " + gl.glGetString(GL2.GL_VERSION));
    gl.glLoadIdentity();
    gl.glFrustum(-1.0f, 1.0f, -h, h, 5.0f, 60.0f);
    gl.glMatrixMode(GL2.GL_MODELVIEW);
    gl.glLoadIdentity();
    gl.glTranslatef(0.0f, 0.0f, -40.0f);
  }
View Full Code Here

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

    System.err.println("GL_RENDERER: " + gl.glGetString(GL2.GL_RENDERER));
    System.err.println("GL_VERSION: " + gl.glGetString(GL2.GL_VERSION));
    gl.glLoadIdentity();
    gl.glFrustum(-1.0f, 1.0f, -h, h, 5.0f, 60.0f);
    gl.glMatrixMode(GL2.GL_MODELVIEW);
    gl.glLoadIdentity();
    gl.glTranslatef(0.0f, 0.0f, -40.0f);
  }

  public void dispose(GLAutoDrawable drawable) {
    System.out.println("Gears.dispose: "+drawable);
View Full Code Here

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

    public void display(GLAutoDrawable gLDrawable)
    {
        final GL2 gl = gLDrawable.getGL().getGL2();
        gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT);
        gl.glLoadIdentity();
        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);
View Full Code Here

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

        final float h = (float) width / (float) height;

        gl.glViewport(0, 0, width, height);
        gl.glMatrixMode(GL2.GL_PROJECTION);
        gl.glLoadIdentity();
        glu.gluPerspective(45.0f, h, 1.0, 20.0);
        gl.glMatrixMode(GL2.GL_MODELVIEW);
        gl.glLoadIdentity();
    }
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.