Files
GabsPuNs-Project_Zenith_Main/Minecraft.Client/Windows64/Libs/RmlUi/Source/Debugger/Geometry.h
2026-06-10 16:12:51 +02:00

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