Examples of glLineWidth()


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

        {
            GL gl = dc.getGL();

            if (dc.isPickingMode())
            {
                gl.glLineWidth(lineWidth.floatValue() + this.getLinePickWidth());
            }
            else
                gl.glLineWidth(lineWidth.floatValue());

            if (!dc.isPickingMode())
View Full Code Here

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

            if (dc.isPickingMode())
            {
                gl.glLineWidth(lineWidth.floatValue() + this.getLinePickWidth());
            }
            else
                gl.glLineWidth(lineWidth.floatValue());

            if (!dc.isPickingMode())
            {
                gl.glHint(GL.GL_LINE_SMOOTH_HINT, this.getActiveAttributes().getAntiAliasHint());
                gl.glEnable(GL.GL_LINE_SMOOTH);
View Full Code Here

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

        gl.glEnd();
      }
     
     
      gl.glPolygonMode( GL.GL_FRONT, GL.GL_LINE );
      gl.glLineWidth(1.7f);
      gl.glDisable(GL.GL_LIGHTING);
      gl.glScaled(1.01, 1.01, 1.01);
      i = shape.getFaces();
      while (i.hasNext()) {
        gl.glBegin(GL.GL_POLYGON);
View Full Code Here

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

    @Override
    void resetLineAttributes(Context ctx) {
        if (VERBOSE) System.err.println("JoglPipeline.resetLineAttributes()");

        GL gl = context(ctx).getGL();
        gl.glLineWidth(1.0f);
        gl.glDisable(GL2.GL_LINE_STIPPLE);

        // XXXX: Polygon Mode check, blend enable
        gl.glDisable(GL.GL_LINE_SMOOTH);
    }
View Full Code Here

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

        final GL gl = GLContext.getCurrentGL();

        final LineRecord lineRecord = ContextManager.getCurrentContext().getLineRecord();

        if (!lineRecord.isValid() || lineRecord.width != lineWidth) {
            gl.glLineWidth(lineWidth);
            lineRecord.width = lineWidth;
        }

        if (stipplePattern != (short) 0xFFFF) {
            if (!lineRecord.isValid() || !lineRecord.stippled) {
View Full Code Here

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

        gl.glVertex2f(x2, y2);
       
  }
  private void applyLineWidth() {
    GL gl = drawable.getGL();
    gl.glLineWidth(lineWidth);
  }
  private Line[] lineArray = new Line[1];
  public void drawLine(Line line, boolean useColors) {
    if (line == null) throw new IllegalArgumentException("line must not be null");
    lineArray[0] = line;
View Full Code Here

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

   *          {@inheritDoc}
   */
  public void init(final GLAutoDrawable drawable) {
    final GL gl = drawable.getGL();
    gl.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
    gl.glLineWidth(DEFAULT_LINE_WIDTH);
  }

  /**
   * {@inheritDoc}
   *
 
View Full Code Here

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

      if(!drawFluid)
        fadeToColor(p, gl, 0, 0, 0, 0.05f);

      gl.glBlendFunc(GL.GL_ONE, GL.GL_ONE)// additive blending (ignore alpha)
      gl.glEnable(GL.GL_LINE_SMOOTH);        // make points round
      gl.glLineWidth(1);


      if(renderUsingVA) {
        for(int i=0; i<maxParticles; i++) {
          if(particles[i].alpha > 0) {
View Full Code Here

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

       
//        gl.glEnable(GL.GL_LINE_SMOOTH);
        //FIXME TEST
      Tools3D.setLineSmoothEnabled(gl, true);
     
        gl.glLineWidth(strokeWeight);
       
        //DRAW
//      gl.glDrawElements(GL.GL_LINE_STRIP, indexBuff.capacity(), GL.GL_UNSIGNED_INT, indexBuff);
//      gl.glDrawArrays(GL.GL_LINE_STRIP, 0, vertexArr.length);
       
View Full Code Here

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

//        gl.glEnable(GL.GL_LINE_SMOOTH);
      //FIXME TEST
      Tools3D.setLineSmoothEnabled(gl, true);
     
      if (strokeWeight > 0)
        gl.glLineWidth(strokeWeight);
     
      //DRAW
      if (geometryInfo.isIndexed()){
        gl.glDrawElements(GL.GL_LINE_STRIP, indexBuff.capacity(), GL.GL_UNSIGNED_INT, indexBuff); ////indices.limit()?
      }else{
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.