Class SimplePolygon

All Implemented Interfaces:
IMultiColorable, ISingleColorable, IGLRenderer, ISortableDraw

public class SimplePolygon extends Polygon implements ISingleColorable, IMultiColorable
A SimplePolygon makes the simplest possible GL rendering with especially no:
  • gl.glPolygonMode(GL2.GL_FRONT_AND_BACK, GL2.GL_FILL);
  • gl.glEnable(GL2.GL_POLYGON_OFFSET_FILL);
Author:
Martin Pernollet
  • Constructor Details

    • SimplePolygon

      public SimplePolygon()
  • Method Details

    • draw

      public void draw(IPainter painter)
      Description copied from class: Drawable
      Call OpenGL2 routines for rendering the object.
      Specified by:
      draw in interface IGLRenderer
      Overrides:
      draw in class Geometry