Package javax.media.opengl

Examples of javax.media.opengl.DebugGL


    System.out.println(" --- Exe05 ---");
    glDrawable = drawable;
    gl = drawable.getGL();
    glu = new GLU();
    glut = new GLUT();
    glDrawable.setGL(new DebugGL(gl));

    gl.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
  }
View Full Code Here


    System.out.println(" --- Exe06 ---");
    glDrawable = drawable;
    gl = drawable.getGL();
    glu = new GLU();
    glut = new GLUT();
    glDrawable.setGL(new DebugGL(gl));

    gl.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
  }
View Full Code Here

    System.out.println(" --- Exe03 ---");
    glDrawable = drawable;
    gl = drawable.getGL();
    glu = new GLU();
    glut = new GLUT();
    glDrawable.setGL(new DebugGL(gl));

    gl.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
  }
View Full Code Here

  public void init(GLAutoDrawable drawable) {
    glDrawable = drawable;
    gl = drawable.getGL();
    glu = new GLU();
    glut = new GLUT();
    glDrawable.setGL(new DebugGL(gl));
   
    this.heightMapDl = this.terreno.createHeightMapDl(gl);
  }
View Full Code Here

    System.out.println(" --- Exe01 ---");
    glDrawable = drawable;
    gl = drawable.getGL();
    glu = new GLU();
    glut = new GLUT();
    glDrawable.setGL(new DebugGL(gl));

    gl.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
  }
View Full Code Here

    System.out.println(" --- Exe02 ---");
    glDrawable = drawable;
    gl = drawable.getGL();
    glu = new GLU();
    glut = new GLUT();
    glDrawable.setGL(new DebugGL(gl));

    gl.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
  }
View Full Code Here

    System.out.println(" --- Exe04 ---");
    glDrawable = drawable;
    gl = drawable.getGL();
    glu = new GLU();
    glut = new GLUT();
    glDrawable.setGL(new DebugGL(gl));

    gl.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
  }
View Full Code Here

  public void init(GLAutoDrawable drawable) {
    System.out.println(" --- Exe00 ---");
    glDrawable = drawable;
    gl = drawable.getGL();
    glu = new GLU();
    glDrawable.setGL(new DebugGL(gl));

    gl.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
  }
View Full Code Here

  protected void debug(GLAutoDrawable drawable) {
    // Install debugging and tracing in the GL pipeline
    if(trace) {
      if(debugGL) {
        if(!(drawable.getContext().getGL() instanceof TraceGL)) {
          drawable.getContext().setGL(new TraceGL(new DebugGL(drawable.getContext().getGL()), traceLevel));
        }
        if(!(drawable.getGL() instanceof TraceGL)) {
          drawable.setGL(new TraceGL(new DebugGL(drawable.getGL()), traceLevel));
        }
       
      } else {
        if(!(drawable.getContext().getGL() instanceof TraceGL)) {
          drawable.getContext().setGL(new TraceGL(drawable.getContext().getGL(), traceLevel));
        }
        if(!(drawable.getGL() instanceof TraceGL)) {
          drawable.setGL(new TraceGL(drawable.getGL(), traceLevel));
        }
      }
    } else if(debugGL) {
      if(!(drawable.getContext().getGL() instanceof DebugGL)) {
        drawable.getContext().setGL(new DebugGL(drawable.getContext().getGL()));
      }
      if(!(drawable.getGL() instanceof DebugGL)) {
        drawable.setGL(new DebugGL(drawable.getGL()));
      }
    }
  }
View Full Code Here

TOP

Related Classes of javax.media.opengl.DebugGL

Copyright © 2018 www.massapicom. 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.