Examples of glHint()


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

    gl.glHint(GL2.GL_POLYGON_SMOOTH_HINT, GL.GL_NICEST);
  }
  private void applyPointAntialiasing() {
    GL2 gl = drawable.getGL().getGL2();
    gl.glEnable(GL2.GL_POINT_SMOOTH);
    gl.glHint(GL2.GL_POINT_SMOOTH_HINT, GL.GL_NICEST);
  }
 
  public void setLineAntialiasing(boolean enabled) {
    endPrimitivesKeepImage();
    lineAntialiasing = enabled;
View Full Code Here

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

    if(lineAntialiasing) {
      gl.glEnable(GL.GL_LINE_SMOOTH);
    } else {
      gl.glDisable(GL.GL_LINE_SMOOTH);
    }
    gl.glHint(GL.GL_LINE_SMOOTH_HINT, GL.GL_NICEST);
}
 
  // ==================== Drawing State ====================
  public void endFrame() {
    endPrimitives()
View Full Code Here

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

    this.glu = GLU.createGLU();
    gl.glClearColor(0x00 / 255f, 0x7d / 255f, 0xdf / 255f, 0f);
    gl.glClearDepthf(1.0f);
    gl.glEnable(GL.GL_DEPTH_TEST);
    gl.glDepthFunc(GL.GL_LEQUAL);
    gl.glHint(GL2ES1.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST);

    this.chunkRenderer.init(drawable, gl);
    this.overlay.init(drawable);

  }
View Full Code Here

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

    GL2 gl = delegate.getGL();
   
    // Depth Testing
    gl.glDisable(GL.GL_DEPTH_TEST);
   
      gl.glHint(GL2.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST);
     
      // Lighting, Coloring
      gl.glEnable(GL2.GL_LIGHTING);
    gl.glEnable(GL.GL_BLEND);
      gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);
View Full Code Here

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

   

    // Depth Testing
    gl.glDisable(GL.GL_DEPTH_TEST);
   
      gl.glHint(GL2.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST);
     
      // Lighting, Coloring
      gl.glEnable(GL2.GL_LIGHTING);
    gl.glEnable(GL.GL_BLEND);
      gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);
View Full Code Here

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

        glu = new GLU();                         // get GL Utilities
        gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); // set background (clear) color
        gl.glClearDepth(1.0f);      // set clear depth value to farthest
        gl.glEnable(GL_DEPTH_TEST); // enables depth testing
        gl.glDepthFunc(GL_LEQUAL)// the type of depth test to do
        gl.glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); // best perspective correction
        gl.glShadeModel(GL_SMOOTH); // blends colors nicely, and smoothes out lighting
    }

    /**
     * Call-back handler for window re-size event. Also called when the drawable is
View Full Code Here

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

        glu = new GLU();
        gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
        gl.glClearDepth(1.0f);
        gl.glEnable(GL_DEPTH_TEST); // Enables depth testing
        gl.glDepthFunc(GL_LEQUAL); // the type of depth test to do
        gl.glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); // best perspective coorection
       
        gl.glShadeModel(GL_SMOOTH); // blends colors nicely, and smooths out lighting
       
        //Load Texture from image
        try {
View Full Code Here

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

        glu = new GLU();
        gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
        gl.glClearDepth(1.0f);
        gl.glEnable(GL_DEPTH_TEST); // Enables depth testing
        gl.glDepthFunc(GL_LEQUAL); // the type of depth test to do
        gl.glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); // best perspective coorection
       
        gl.glShadeModel(GL_SMOOTH); // blends colors nicely, and smooths out lighting
       
        //Load Texture from image
        try {
View Full Code Here

Examples of javax.microedition.khronos.opengles.GL11.glHint()

        }

        // Setup GL state
        gl.glClearColor(1.0f, 1.0f, 1.0f, 0.0f);
        gl.glDisable(GL10.GL_DITHER);
        gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_FASTEST);
        gl.glEnable(GL10.GL_CULL_FACE);
        gl.glShadeModel(GL10.GL_SMOOTH);
        gl.glEnable(GL10.GL_DEPTH_TEST);

        initializeLights(gl);
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.