Interface IHudRender


public interface IHudRender
Internal HUD rendering interface
Provides low-level HUD rendering functionality
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Renders the current drawing session
    Throws RuntimeException if start() was not called first
    double
     
    void
    line(ClientColor color, float opacity, double x1, double y1, double x2, double y2)
    Renders a line
    Throws RuntimeException if start() was not called first
    void
    quad(ClientColor color, float opacity, double x, double y, double width, double height)
    Renders a quad/filled rectangle
    Throws RuntimeException if start() was not called first
    void
    Starts a new drawing session
    Must be called before any drawing operations.
  • Method Details

    • start

      void start()
      Starts a new drawing session
      Must be called before any drawing operations. Throws RuntimeException if already started
    • draw

      void draw()
      Renders the current drawing session
      Throws RuntimeException if start() was not called first
    • line

      void line(ClientColor color, float opacity, double x1, double y1, double x2, double y2)
      Renders a line
      Throws RuntimeException if start() was not called first
      Parameters:
      color - The color to use
      opacity - The opacity value
      x1 - Starting X coordinate
      y1 - Starting Y coordinate
      x2 - Ending X coordinate
      y2 - Ending Y coordinate
    • quad

      void quad(ClientColor color, float opacity, double x, double y, double width, double height)
      Renders a quad/filled rectangle
      Throws RuntimeException if start() was not called first
      Parameters:
      color - The color to use
      opacity - The opacity value
      x - X coordinate
      y - Y coordinate
      width - Width of the quad
      height - Height of the quad
    • getScale

      double getScale()