Examples of glPointSize()


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

    GL gl = drawable.getGL();
        gl.glVertex2f(x, y);
  }
  private void applyPointSize() {
    GL gl = drawable.getGL();
    gl.glPointSize(pointDiameter);
  }
  public float getPointRadius() {
    return pointDiameter / 2f;
  }
  public void setPointRadius(float radius) {
View Full Code Here

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

        Double scale = this.getActiveAttributes().getScale();
        if (scale == null)
            scale = DEFAULT_POINT_SIZE;

        if (dc.isPickingMode())
            gl.glPointSize(scale.floatValue() + this.getLinePickWidth());
        else
            gl.glPointSize(scale.floatValue());

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

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

            scale = DEFAULT_POINT_SIZE;

        if (dc.isPickingMode())
            gl.glPointSize(scale.floatValue() + this.getLinePickWidth());
        else
            gl.glPointSize(scale.floatValue());

        if (!dc.isPickingMode())
        {
            gl.glEnable(GL2.GL_POINT_SMOOTH);
            gl.glHint(GL2.GL_POINT_SMOOTH_HINT, GL2.GL_NICEST);
View Full Code Here

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

  @Override
  public void drawPoint(Vec2 argPoint, float argRadiusOnScreen, Color3f argColor) {
    Vec2 vec = getWorldToScreen(argPoint);
    GL2 gl = panel.getGL().getGL2();
    gl.glBegin(GL2.GL_POINT);
    gl.glPointSize(argRadiusOnScreen);
    gl.glVertex2f(vec.x, vec.y);
    gl.glEnd();
  }

  private final Vec2 trans = new Vec2();
View Full Code Here

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

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

    GL2 gl = context(ctx).getGL().getGL2();
        gl.glPointSize(1.0f);

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

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

    @Override
    void updatePointAttributes(Context ctx, float pointSize, boolean pointAntialiasing) {
        if (VERBOSE) System.err.println("JoglPipeline.updatePointAttributes()");

    GL2 gl = context(ctx).getGL().getGL2();
        gl.glPointSize(pointSize);

        // XXXX: Polygon Mode check, blend enable
        if (pointAntialiasing) {
            gl.glEnable(GL2.GL_POINT_SMOOTH);
        } else {
View Full Code Here

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

    GL2 gl = drawable.getGL().getGL2();
        gl.glVertex2f(x, y);
  }
  private void applyPointSize() {
    GL2 gl = drawable.getGL().getGL2();
    gl.glPointSize(pointDiameter);
  }
  public float getPointRadius() {
    return pointDiameter / 2f;
  }
  public void setPointRadius(float radius) {
View Full Code Here

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

  @Override
  public void drawPoint(Vec2 argPoint, float argRadiusOnScreen, Color3f argColor) {
    Vec2 vec = getWorldToScreen(argPoint);
    GL2 gl = panel.getGL().getGL2();
    gl.glPointSize(argRadiusOnScreen);
    gl.glBegin(GL2.GL_POINTS);
    gl.glVertex2f(vec.x, vec.y);
    gl.glEnd();
  }
View Full Code Here

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

   
    // check if we need to highlight pixels which are inside the polygon
    if (this.insideOutsideTest) {
      // push the current color
      gl.glPushAttrib(GL2.GL_CURRENT_BIT);
      gl.glPointSize(3);
      gl.glBegin(GL.GL_POINTS);  
      for (int y = 0; y < this.canvas.getHeight(); y++) {
        for (int x = 0; x < this.canvas.getWidth(); x++) {
          if (this.shapes[selectedShapeIndex].isInside(x, y))
            // the inside is red
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.