From f756fa0a17675ea70956af9c42f6c1117a84f9bd Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 31 Jan 2019 20:31:47 +0800 Subject: *misc --- Source/Asura.Engine/Graphics/Color.h | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'Source/Asura.Engine/Graphics/Color.h') diff --git a/Source/Asura.Engine/Graphics/Color.h b/Source/Asura.Engine/Graphics/Color.h index 40b55e4..f07919c 100644 --- a/Source/Asura.Engine/Graphics/Color.h +++ b/Source/Asura.Engine/Graphics/Color.h @@ -8,20 +8,36 @@ namespace AsuraEngine namespace Graphics { + class Color; + /// /// 32bitsÑÕÉ« /// - class Color + class Color32 { public: - Color(byte r, byte g, byte b, byte a); - ~Color(); + Color32(Color c); + Color32(byte r, byte g, byte b, byte a); byte r, g, b, a; private: + LUAX_DECL_FACTORY(Color32); + + }; + + class Color + { + public: + + Color(Color32 c32); + + float r, g, b, a; + + private: + LUAX_DECL_FACTORY(Color); }; -- cgit v1.1-26-g67d0