Examples of glDeleteLists()


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

      return -1;
   
    GL gl = GLU.getCurrentGL();
    //Delete old one
    if (this.displayListID != 0){
      gl.glDeleteLists(this.displayListID, 1);
    }
   
    //Create new list
    int listIDFill = gl.glGenLists(1);
    if (listIDFill == 0){
View Full Code Here

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

     
      if (MT4jSettings.getInstance().isOpenGlMode() && this.displayListID != 0){
        GL gl = GLU.getCurrentGL();
        //Delete old one
        if (gl != null){
          gl.glDeleteLists(this.displayListID, 1);
        }
      }
    }
 
  @Override
View Full Code Here

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

  public void deleteDisplayLists(){
    if (MT4jSettings.getInstance().isOpenGlMode()){
      GL gl =((PGraphicsOpenGL)this.getRenderer().g).gl;
      for (int id : this.displayListIDs){
        if (id != -1){
          gl.glDeleteLists(id, 1);
        }
      }
      this.displayListIDs[0] = -1;
      this.displayListIDs[1] = -1;
    }
View Full Code Here

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

      int[] ids = this.getGeometryInfo().getDisplayListIDs();
      //Delete default outline display list, not really usable in a mesh.
      if (MT4jSettings.getInstance().isOpenGlMode()){
        GL gl =((PGraphicsOpenGL)this.getRenderer().g).gl;
        if (ids[1] != -1){
          gl.glDeleteLists(ids[1], 1);
        }
      }
      if (this.outlineContours != null){
        ids[1] = generateContoursDisplayList();
        this.getGeometryInfo().setDisplayListIDs(ids);
View Full Code Here

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

    if (MT4jSettings.getInstance().isOpenGlMode()
      && this.outlineContours != null
    ){
      if (ids[1] != -1){
        GL gl =((PGraphicsOpenGL)this.getRenderer().g).gl;
        gl.glDeleteLists(ids[1], 1);
      }
      //Create outline display list from manually set outline contours if available.
      ids[1] = this.generateContoursDisplayList();
      this.getGeometryInfo().setDisplayListIDs(ids);
    }
View Full Code Here

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

        if (id <= 0) {
            System.err.println("JAVA 3D ERROR : glDeleteLists(" + id + ",1) -- IGNORED");
        }

    GL2 gl = context(ctx).getGL().getGL2();
        gl.glDeleteLists(id, 1);
    }

    @Override
    void freeTexture(Context ctx, int id) {
        if (VERBOSE) System.err.println("JoglPipeline.freeTexture()");
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.