mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-07-10 22:19:08 +00:00
33 lines
768 B
C++
33 lines
768 B
C++
#pragma once
|
|
|
|
#include "../../Include/RmlUi/Core/Types.h"
|
|
|
|
namespace Rml {
|
|
|
|
class Context;
|
|
|
|
namespace Debugger {
|
|
|
|
/**
|
|
Helper class for generating geometry for the debugger.
|
|
*/
|
|
|
|
class Geometry {
|
|
public:
|
|
// Set the context to render through.
|
|
static void SetContext(Context* context);
|
|
|
|
// Renders a one-pixel rectangular outline.
|
|
static void RenderOutline(Vector2f origin, Vector2f dimensions, Colourb colour, float width);
|
|
// Renders a box.
|
|
static void RenderBox(Vector2f origin, Vector2f dimensions, Colourb colour);
|
|
// Renders a box with a hole in the middle.
|
|
static void RenderBox(Vector2f origin, Vector2f dimensions, Vector2f hole_origin, Vector2f hole_dimensions, Colourb colour);
|
|
|
|
private:
|
|
Geometry();
|
|
};
|
|
|
|
} // namespace Debugger
|
|
} // namespace Rml
|