Class Triangle

All Implemented Interfaces:
IMultiColorable, ISingleColorable, IGLRenderer, ISortableDraw

public class Triangle extends Geometry
Author:
Martin Pernollet
  • Constructor Details

    • Triangle

      public Triangle()
      Initializes an empty Triangle with face status defaulting to true, and wireframe status defaulting to false.
    • Triangle

      public Triangle(Color wire, Color face)
  • Method Details

    • begin

      protected void begin(IPainter painter)
      Description copied from class: Geometry
      Invoke GL begin with the actual geometry type
      invalid @link
      GL#GL_POINTS
      ,
      invalid @link
      GL#GL_LINES
      ,
      invalid @link
      GL#GL_TRIANGLES
      ,
      invalid @link
      GL2#GL_POLYGON
      ...
      Specified by:
      begin in class Geometry