Draw group

The Draw API is limited, and will be deprecated soon. Instead of using this API, try using the NanoVG API instead. There's still a few missing features in the NanoVG API (such as text rendering and getting the screen resolution), but that will be sorted out soon.
Global functions

int Draw::GetWidth() Gets the width of the game's resolution.

int Draw::GetHeight() Gets the height of the game's resolution.

void Draw::FillRect(const vec4&in rect, const vec4&in color, float rounding = 0.0f) Draws a filled rectangle.

void Draw::DrawRect(const vec4&in rect, const vec4&in color, float rounding = 0.0f, float thickness = 1.0f) Draws a border rectangle.

void Draw::FillQuad(const vec2&in topLeft, const vec2&in topRight, const vec2&in bottomRight, const vec2&in bottomLeft, const vec4&in color) Draws a filled quad.

void Draw::DrawQuad(const vec2&in topLeft, const vec2&in topRight, const vec2&in bottomRight, const vec2&in bottomLeft, const vec4&in color, float thickness = 1.0f) Draws a filled quad.

void Draw::FillCircle(const vec2&in pos, float radius, const vec4&in color, int segments = 16) Draws a filled circle.

void Draw::DrawCircle(const vec2&in pos, float radius, const vec4&in color, float thickness = 1.0f, int segments = 16) Draws a border circle.

void Draw::DrawLine(const vec2&in a, const vec2&in b, const vec4&in color, float thickness = 1.0f) Draws a line.

vec2 Draw::MeasureString(const string&in str, Resources::Font@ font = null, float size = 0.0f, float wrapWidth = 0.0f) Calculates the size that a string will be drawn at.

void Draw::DrawString(const vec2&in pos, const vec4&in color, const string&in str, Resources::Font@ font = null, float size = 0.0f, float wrapWidth = 0.0f) Draws a text.

void Draw::DrawTexture(Resources::Texture&inout texture, const vec2&in pos) Draws a texture.

void Draw::DrawTexture(Resources::Texture&inout texture, const vec2&in pos, const vec2&in size) Draws a texture scaled to a specific size.

void Draw::DrawTexture(Resources::Texture&inout texture, const vec2&in pos, const vec2&in size, uint color) Draws a texture scaled to a specific size and blend color (in 0xRRGGBBAA hexadecimal format).

void Draw::DrawTexture(Resources::Texture&inout texture, const vec2&in pos, const vec2&in size, uint color, float rotation, const vec2&in origin = vec2 ( 0 , 0 )) Draws a texture scaled to a specific size, blend color (in 0xRRGGBBAA hexadecimal format), and rotation around an origin.