Package javax.media.opengl

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


//        gl.glEnable(GL.GL_LINE_SMOOTH);
      //FIXME TEST for multisample
      Tools3D.setLineSmoothEnabled(gl, true);
   
      if (strokeWeight > 0)
        gl.glLineWidth(strokeWeight);
      if (lineStipple != 0){
        gl.glLineStipple(1, lineStipple);
        gl.glEnable(GL.GL_LINE_STIPPLE);
      }
     
View Full Code Here


        gl.glStencilFunc (GL.GL_EQUAL, 0x00, 0x01);
        gl.glStencilOp (GL.GL_KEEP, GL.GL_KEEP, GL.GL_KEEP);
       
        //DRAW OUTLINE
       gl.glEnable(GL.GL_LINE_SMOOTH);
       gl.glLineWidth(1.0f);
       gl.glColor4f(0.0f, 0.0f, 0.0f, 1.0f);
        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);
View Full Code Here

//      gl.glEnable(GL.GL_LINE_SMOOTH);
//    }
    //FIXME TEST
    Tools3D.setLineSmoothEnabled(gl, true);

    gl.glLineWidth(this.getStrokeWeight());
    FloatBuffer strokeColBuff = this.getGeometryInfo().getStrokeColBuff();
    gl.glColor4d (strokeColBuff.get(0), strokeColBuff.get(1), strokeColBuff.get(2), strokeColBuff.get(3));
    for (Vertex[] varr : this.outlineContours){
      gl.glBegin(GL.GL_LINE_STRIP);
      for(Vertex v : varr){
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.