Class UIMesh

java.lang.Object
net.risingworld.api.ui.UIElement
net.risingworld.api.ui.UIMesh
All Implemented Interfaces:
Serializable

public class UIMesh extends UIElement
Represents a UI mesh. It enables you to create custom shapes and elements on the screen. For a simplified version, you can use the UIPainter2D instead, which provides a Vector API to create shapes.

Please note that most style properties have no impact on the UIMesh!
See Also:
  • Constructor Details

    • UIMesh

      public UIMesh()
  • Method Details

    • setTexture

      public void setTexture(TextureAsset texture)
    • setNextVertex

      public void setNextVertex(Vector2f position, Vector2f uv)
    • setNextVertex

      public void setNextVertex(Vector2f position, float r, float g, float b, float a)
    • setNextVertex

      public void setNextVertex(Vector2f position, ColorRGBA color)
    • setNextVertex

      public void setNextVertex(Vector2f position, Vector2f uv, float r, float g, float b, float a)
    • setNextIndex

      public void setNextIndex(short index)
    • clear

      public void clear()
    • update

      public void update()