Selaa lähdekoodia

Separated file for basic Gfx structures.

paracelsus 12 vuotta sitten
vanhempi
sitoutus
f3e1eca6f7
1 muutettua tiedostoa jossa 27 lisäystä ja 0 poistoa
  1. 27 0
      client/Gfx/Basic.h

+ 27 - 0
client/Gfx/Basic.h

@@ -0,0 +1,27 @@
+#pragma once
+
+namespace Gfx
+{
+
+struct Point
+{
+	si32 x;
+	si32 y;
+
+	inline Point() {};
+	inline Point(si32 _x, si32 _y) : x(_x), y(_y) {};
+};
+
+struct Rect
+{
+	Point lt;
+	Point rb;
+
+	inline ui32 width() { return rb.x - lt.x; };
+	inline ui32 height() { return rb.y - lt.y; };
+};
+
+/* Color transform matrix for: grayscale, clone, bloodlust, etc */
+typedef float ColorMatrix[3][3];
+
+}