From b8cefcc12d583ef558a46afc31a115744c3645f4 Mon Sep 17 00:00:00 2001 From: Tobi Date: Wed, 1 Dec 2021 21:00:41 +0100 Subject: [PATCH] Update renderd7.hpp --- renderd7.hpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/renderd7.hpp b/renderd7.hpp index f9775c7..158016b 100644 --- a/renderd7.hpp +++ b/renderd7.hpp @@ -133,6 +133,17 @@ namespace RenderD7 namespace Color { + struct rgba + { + u8 r, g, b, a; + }; + class RGB{ + public: + RGB(u8 r, u8 g, u8 b) : r(),g(),b(),a(255){} + uint32_t Color::toRGBA() const {return (r << 24) | (g << 16) | (b << 8) | a;} + + u8 r, g ,b, a; + }; u32 Hex(const std::string color, u8 a = 255); } void DrawMetrikOvl(); @@ -253,10 +264,7 @@ namespace RenderD7 std::string path; bool isDir; }; - struct rgba - { - u8 r, g, b, a; - }; + /*class Console { public: