Package javax.media.opengl

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


            int baseMu2 = 1;
            drawJuliaSlice(gl, baseMu1, baseMu2, mu[0], mu[1]);
            int baseMu3 = width - MU_RECT_SIZE - 2;
            int baseMu4 = MU_RECT_SIZE + 2;
            drawJuliaSlice(gl, baseMu3, baseMu4, mu[2], mu[3]);
  gl.glDisable(GL_BLEND);

  gl.glColor3f(1, 1, 1);
  int mu1 = (int) (baseMu1 + MU_RECT_SIZE * (mu[0] + 1.5f) / 3.f);
  int mu2 = (int) (baseMu2 + MU_RECT_SIZE * (mu[1] + 1.5f) / 3.f);
  gl.glBegin(GL_LINES);
View Full Code Here


            initCL(drawable.getContext());

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

            gl.setSwapInterval(0);
            gl.glDisable(GL_DEPTH_TEST);
            gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);

            initView(gl, drawable.getWidth(), drawable.getHeight());

            initPBO(gl);
View Full Code Here

            int baseMu2 = 1;
            drawJuliaSlice(gl, baseMu1, baseMu2, mu[0], mu[1]);
            int baseMu3 = width - MU_RECT_SIZE - 2;
            int baseMu4 = MU_RECT_SIZE + 2;
            drawJuliaSlice(gl, baseMu3, baseMu4, mu[2], mu[3]);
  gl.glDisable(GL_BLEND);

  gl.glColor3f(1, 1, 1);
  int mu1 = (int) (baseMu1 + MU_RECT_SIZE * (mu[0] + 1.5f) / 3.f);
  int mu2 = (int) (baseMu2 + MU_RECT_SIZE * (mu[1] + 1.5f) / 3.f);
  gl.glBegin(GL_LINES);
View Full Code Here

            initCL(drawable.getContext());

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

            gl.setSwapInterval(0);
            gl.glDisable(GL_DEPTH_TEST);
            gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);

            initView(gl, drawable.getWidth(), drawable.getHeight());

            initPBO(gl);
View Full Code Here

    return false;//polygonAntialiasing;
  }
  private void applyPolygonAntialiasing() {
    GL2 gl = drawable.getGL().getGL2();
    // !! Enabling this causes problems on most GFX Cards (though not on my FireGL)
    gl.glDisable(GL2.GL_POLYGON_SMOOTH);
    gl.glHint(GL2.GL_POLYGON_SMOOTH_HINT, GL.GL_NICEST);
  }
  private void applyPointAntialiasing() {
    GL2 gl = drawable.getGL().getGL2();
    gl.glEnable(GL2.GL_POINT_SMOOTH);
View Full Code Here

  private void applyLineAntialiasing() {
    GL2 gl = drawable.getGL().getGL2();
    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 ====================
View Full Code Here

    //    delegate.prepareExternalCode();
    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);
View Full Code Here

//    delegate.prepareExternalCode();
    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);
View Full Code Here

            //renderAxes(drawable);
            renderModel(drawable);
            renderTool(drawable);
        }
       
        gl.glDisable(GL.GL_DEPTH_TEST);

        gl.glPopMatrix();
       
        this.fpsCounter.draw();
        //this(drawable, new Font("SansSerif", Font.BOLD, 12));
View Full Code Here

     */
    private void setupPerpective(int x, int y, GLAutoDrawable drawable, boolean ortho) {
        final GL2 gl = drawable.getGL().getGL2();

        if (ortho) {
            gl.glDisable(GL_DEPTH_TEST);
            //gl.glDisable(GL_LIGHTING);
            gl.glMatrixMode(GL_PROJECTION);
            gl.glPushMatrix();
            gl.glLoadIdentity();
            // Object's longest dimension is 1, make window slightly larger.
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.