Examples of glNewList()


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

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

    //////////////////////////////
    // 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

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

    }
   
    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

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

    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

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

    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

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

    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

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

    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

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

        if (displayListId <= 0) {
            System.err.println("JAVA 3D ERROR : glNewList(" + displayListId + ") -- IGNORED");
        }

    GL2 gl = context(ctx).getGL().getGL2();
        gl.glNewList(displayListId, GL2.GL_COMPILE);
    }

    @Override
    void endDisplayList(Context ctx) {
        if (VERBOSE) System.err.println("JoglPipeline.endDisplayList()");
View Full Code Here

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

    gl.glEnable(GL2.GL_LIGHT0);
    gl.glEnable(GL2.GL_DEPTH_TEST);
           
    /* make the gears */
    gear1 = gl.glGenLists(1);
    gl.glNewList(gear1, GL2.GL_COMPILE);
    gl.glMaterialfv(GL2.GL_FRONT, GL2.GL_AMBIENT_AND_DIFFUSE, red, 0);
    gear(gl, 1.0f, 4.0f, 1.0f, 20, 0.7f);
    gl.glEndList();
           
    gear2 = gl.glGenLists(1);
View Full Code Here

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

    gl.glMaterialfv(GL2.GL_FRONT, GL2.GL_AMBIENT_AND_DIFFUSE, red, 0);
    gear(gl, 1.0f, 4.0f, 1.0f, 20, 0.7f);
    gl.glEndList();
           
    gear2 = gl.glGenLists(1);
    gl.glNewList(gear2, GL2.GL_COMPILE);
    gl.glMaterialfv(GL2.GL_FRONT, GL2.GL_AMBIENT_AND_DIFFUSE, green, 0);
    gear(gl, 0.5f, 2.0f, 2.0f, 10, 0.7f);
    gl.glEndList();
           
    gear3 = gl.glGenLists(1);
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.