From 6e502d73d84ba173e3c2ee55cb198e0e4a6cc7e6 Mon Sep 17 00:00:00 2001 From: tobid7 Date: Mon, 22 Dec 2025 12:50:40 +0100 Subject: [PATCH] Add Clearcolor support --- include/amethyst/c3d.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/amethyst/c3d.hpp b/include/amethyst/c3d.hpp index dc42ccf..9f9d99b 100755 --- a/include/amethyst/c3d.hpp +++ b/include/amethyst/c3d.hpp @@ -28,7 +28,9 @@ class C3D { int Width() const { return pWidth; } int Height() const { return pHeight; } ivec2 Size() const { return ivec2(pWidth, pHeight); } - void Clear() { C3D_RenderTargetClear(pTarget, C3D_CLEAR_ALL, 0, 0); } + void Clear(ui clr = 0x0, ui depth_clr = 0x0) { + C3D_RenderTargetClear(pTarget, C3D_CLEAR_ALL, clr, depth_clr); + } void Use() { C3D_FrameDrawOn(pTarget); } C3D_RenderTarget* Ptr() { return pTarget; }