summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/Graphics
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Asura.Engine/Graphics')
-rw-r--r--Source/Asura.Engine/Graphics/Canvas.h3
-rw-r--r--Source/Asura.Engine/Graphics/Color.h22
2 files changed, 20 insertions, 5 deletions
diff --git a/Source/Asura.Engine/Graphics/Canvas.h b/Source/Asura.Engine/Graphics/Canvas.h
index 67d7a63..fab9cba 100644
--- a/Source/Asura.Engine/Graphics/Canvas.h
+++ b/Source/Asura.Engine/Graphics/Canvas.h
@@ -16,8 +16,7 @@ namespace AsuraEngine
private:
- // AsuraEngine.SimCanvas
- LUAX_DECL_FACTORY(SimCanvas);
+ LUAX_DECL_FACTORY(SimCanvas); // AsuraEngine.SimCanvas
};
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);
};