Examples of glCallList()


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

      //Draw with PURE opengl
      if (this.isUseDisplayList() /*&& this.getDisplayListIDs() != null && this.getDisplayListIDs()[0] != -1 && this.getDisplayListIDs()[1] != -1*/){
        int[] displayLists = this.getGeometryInfo().getDisplayListIDs();
        //Use Display Lists
        if (!this.isNoFill())
          gl.glCallList(displayLists[0]); //Draw fill
        if (!this.isNoStroke())
          gl.glCallList(displayLists[1]); //Draw outline
      }else{
        //Use Vertex Arrays or VBOs
        this.drawPureGl(gl);
View Full Code Here

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

        int[] displayLists = this.getGeometryInfo().getDisplayListIDs();
        //Use Display Lists
        if (!this.isNoFill())
          gl.glCallList(displayLists[0]); //Draw fill
        if (!this.isNoStroke())
          gl.glCallList(displayLists[1]); //Draw outline
      }else{
        //Use Vertex Arrays or VBOs
        this.drawPureGl(gl);
      }
      Tools3D.endGL(renderer);
View Full Code Here

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

     
        //Draw with PURE opengl
        if (this.isUseDisplayList()){
          //Use Display Lists
          if (!this.isNoStroke())
            gl.glCallList(this.getGeometryInfo().getDisplayListIDs()[0]); //Draw line
        }else{
          //Use Vertex Arrays or VBOs
          this.drawPureGl(gl);
        }
        ((PGraphicsOpenGL)renderer.g).endGL();
View Full Code Here

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

      //TODO avoid many stateChanges
      //in bitmap font mode for example:
      //enable textures, enable vertex arrays and color only once!
     
      if(!enableCaret && useDisplayList && this.displayListID != 0){
        gl.glCallList(this.displayListID);
      }else{
        drawCharactersGL(gl, characterList, charListSize, lastXAdvancement, thisLineTotalXAdvancement);
      }
     
      Tools3D.endGL(pa);
View Full Code Here

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

    if (this.isUseDirectGL()){
      if (this.isUseDisplayList()){
        GL gl=((PGraphicsOpenGL)this.getRenderer().g).beginGL();
        int[] pds = buttonBackGround.getGeometryInfo().getDisplayListIDs();
        //Draw only filling of background polygon, without outer stroke
        gl.glCallList(pds[0]);
        super.drawComponent(gl);
        ((PGraphicsOpenGL)this.getRenderer().g).endGL();
      }else{
        buttonBackGround.drawComponent(g);
        super.drawComponent(g);
View Full Code Here

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

        // Set normalization if non-uniform scale
        if (isNonUniformScale) {
            gl.glEnable(GL2.GL_NORMALIZE);
        }

        gl.glCallList(id);

        // Turn normalization back off
        if (isNonUniformScale) {
            gl.glDisable(GL2.GL_NORMALIZE);
        }
View Full Code Here

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

           
    // Place the second gear and call its display list
    gl.glPushMatrix();
    gl.glTranslatef(3.1f, -2.0f, 0.0f);
    gl.glRotatef(-2.0f * angle - 9.0f, 0.0f, 0.0f, 1.0f);
    gl.glCallList(gear2);
    gl.glPopMatrix();
           
    // Place the third gear and call its display list
    gl.glPushMatrix();
    gl.glTranslatef(-3.1f, 4.2f, 0.0f);
View Full Code Here

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

           
    // Place the third gear and call its display list
    gl.glPushMatrix();
    gl.glTranslatef(-3.1f, 4.2f, 0.0f);
    gl.glRotatef(-2.0f * angle - 25.0f, 0.0f, 0.0f, 1.0f);
    gl.glCallList(gear3);
    gl.glPopMatrix();
           
    // Remember that every push needs a pop; this one is paired with
    // rotating the entire gear assembly
    gl.glPopMatrix();
View Full Code Here

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

           
    // Place the first gear and call its display list
    gl.glPushMatrix();
    gl.glTranslatef(-3.0f, -2.0f, 0.0f);
    gl.glRotatef(angle, 0.0f, 0.0f, 1.0f);
    gl.glCallList(gear1);
    gl.glPopMatrix();
           
    // Place the second gear and call its display list
    gl.glPushMatrix();
    gl.glTranslatef(3.1f, -2.0f, 0.0f);
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.