Interface IHudRender
public interface IHudRender
Internal HUD rendering interface
Provides low-level HUD rendering functionality
Provides low-level HUD rendering functionality
-
Method Summary
Modifier and TypeMethodDescriptionvoiddraw()Renders the current drawing session
Throws RuntimeException if start() was not called firstdoublegetScale()voidline(ClientColor color, float opacity, double x1, double y1, double x2, double y2) Renders a line
Throws RuntimeException if start() was not called firstvoidquad(ClientColor color, float opacity, double x, double y, double width, double height) Renders a quad/filled rectangle
Throws RuntimeException if start() was not called firstvoidstart()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
Renders a line
Throws RuntimeException if start() was not called first- Parameters:
color- The color to useopacity- The opacity valuex1- Starting X coordinatey1- Starting Y coordinatex2- Ending X coordinatey2- Ending Y coordinate
-
quad
Renders a quad/filled rectangle
Throws RuntimeException if start() was not called first- Parameters:
color- The color to useopacity- The opacity valuex- X coordinatey- Y coordinatewidth- Width of the quadheight- Height of the quad
-
getScale
double getScale()
-