Package javax.media.opengl

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


         gl.glBegin (GL.GL_TRIANGLE_FAN);
           for (int i = 0; i < allVertsBezierResolved.length; i++) {
          Vertex vertex = allVertsBezierResolved[i];
          gl.glVertex3f(vertex.x, vertex.y, vertex.z);
        }
       gl.glEnd ();

       //Draw aliased off-pixels to real
        gl.glColorMask (true, true, true, true);
        gl.glEnable (GL.GL_BLEND);
        gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE_MINUS_SRC_ALPHA);
View Full Code Here


        gl.glBegin (GL.GL_LINES);
         for (int i = 0; i < allVertsBezierResolved.length; i++) {
          Vertex vertex = allVertsBezierResolved[i];
          gl.glVertex3f(vertex.x, vertex.y, vertex.z);
         }
        gl.glEnd ();
        gl.glDisable (GL.GL_LINE_SMOOTH);
//    */
//    /*
        // Draw FILL
        gl.glStencilFunc (GL.GL_EQUAL, 0x01, 0x01);
View Full Code Here

        gl.glBegin (GL.GL_QUADS);
          gl.glVertex3f (minMax[0], minMax[1], 0.0f);
          gl.glVertex3f (minMax[2], minMax[1], 0.0f);
          gl.glVertex3f (minMax[2], minMax[3], 0.0f);
          gl.glVertex3f (minMax[0],  minMax[3], 0.0f);
        gl.glEnd ();

        gl.glDisable(GL.GL_STENCIL_TEST);
//    */
        ((PGraphicsOpenGL)pa.g).endGL();
  }
View Full Code Here

    for (Vertex[] varr : this.outlineContours){
      gl.glBegin(GL.GL_LINE_STRIP);
      for(Vertex v : varr){
        gl.glVertex3f(v.x, v.y, v.z);
      }
      gl.glEnd();
    }
   
    //FIXME TEST
    Tools3D.setLineSmoothEnabled(gl, false);
   
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.