Package javax.media.opengl

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


    gl.glColorPointer(4, GL.GL_FLOAT, 0, colorBuff);
   
    //Using the strokecolor buffer strokecolor AND fill!
   
    //Generate List
    gl.glNewList(listIDFill, GL.GL_COMPILE);
      /////////////////////////////////////
      // Clear stencil and disable color //
        // Draw with STENCIL         //
        /////////////////////////////////////
//      /*
 
View Full Code Here


    //////////////////////////////
    // Draw aliased outline    //
    //////////////////////////////
    gl.glColorPointer(4, GL.GL_FLOAT, 0, strokeColBuff);
   
    gl.glNewList(listIDOutline, GL.GL_COMPILE);
//        gl.glEnable(GL.GL_STENCIL_TEST);
       
       
//      gl.glColorMask(true, true, true, true);
//      gl.glDepthMask(false); //FIXME enable? disable?
View Full Code Here

    }
   
    gl.glColorPointer(4, GL.GL_FLOAT, 0, colorBuff);
   
    // START recording display list and DRAW////////////////////
    gl.glNewList(listIDFill, GL.GL_COMPILE);
      if (textureDrawn){
        gl.glEnable(textureTarget); //muss texture in der liste gebinded werden? anscheinend JA!
        gl.glBindTexture(textureTarget, usedTextureID);
      }
     
View Full Code Here

    returnVal[0] = listIDFill;
   
    /////// DO OUTLINE LIST////////////////////////////
    gl.glColorPointer(4, GL.GL_FLOAT, 0, strokeColBuff);
    //Start recording display list
    gl.glNewList(listIDOutline, GL.GL_COMPILE);
   
//      if (drawSmooth)
//        gl.glEnable(GL.GL_LINE_SMOOTH);
      //FIXME TEST
      Tools3D.setLineSmoothEnabled(gl, true);
View Full Code Here

    gl.glEnableClientState(GL.GL_COLOR_ARRAY);
    gl.glVertexPointer(3, GL.GL_FLOAT, 0, vertBuff);
    gl.glColorPointer(4, GL.GL_FLOAT, 0, strokeColBuff);
   
    //Start recording display list
    gl.glNewList(listIDOutline, GL.GL_COMPILE);
//      if (drawSmooth)
//        gl.glEnable(GL.GL_LINE_SMOOTH);
      //FIXME TEST for multisample
      Tools3D.setLineSmoothEnabled(gl, true);
   
View Full Code Here

    if (enableCaret && showCaret && characterList.size() == 1){
      lastXAdvancement = 0;
    }
   
    //Record list
    gl.glNewList(listIDFill, GL.GL_COMPILE);
      drawCharactersGL(gl, characterList, characterList.size(), lastXAdvancement, thisLineTotalXAdvancement);
    gl.glEndList();
   
    if (listIDFill != 0){
      useDisplayList = true;
View Full Code Here

    if (listId == 0){
      System.err.println("Failed to create display list");
      return 0;
    }

    gl.glNewList(listId, GL.GL_COMPILE);
   
//    if (this.isDrawSmooth()){
//      gl.glEnable(GL.GL_LINE_SMOOTH);
//    }
    //FIXME TEST
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.