Class UIQuad

All Implemented Interfaces:
Pickable, Hintable, Renderable, Savable

public class UIQuad extends Mesh
Defines a four sided quad with its origin at the lower left corner. By default, this mesh only contains vertices (in the two dimensional space) and texture coordinates.
  • Field Details

    • _width

      protected double _width
      The width of this ui quad
    • _height

      protected double _height
      The height of this ui quad
  • Constructor Details

    • UIQuad

      public UIQuad()
      Construct a new 1x1 UI quad.
    • UIQuad

      public UIQuad(String name)
      Construct a new 1x1 UI quad with the given name.
      Parameters:
      name - the name
    • UIQuad

      public UIQuad(String name, double width, double height)
      Construct a new UI quad with the given name and dimensions.
      Parameters:
      name - the name
      width - the width
      height - the height
  • Method Details

    • resize

      public void resize(double width, double height)
      Alter the vertices of this Ui quad so that it of the given size.
      Parameters:
      width - the width
      height - the height
    • getWidth

      public double getWidth()
    • getHeight

      public double getHeight()