openplanet Download Openplanet Login with ManiaPlanet

Draw group

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::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.

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

Draws a text.