]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Graphic/Decal.hpp
Added an enum for decal type
[lugaru.git] / Source / Graphic / Decal.hpp
index 34f2a2b21ac9c8edc24f7371a4b4fdf97e9a4950..ae3862fbf603612c30f3161b8483a60521d57da0 100644 (file)
@@ -25,11 +25,22 @@ class Terrain;
 
 #include "Math/Quaternions.hpp"
 
+enum decal_type {
+    shadowdecal = 0,
+    footprintdecal = 1,
+    blooddecal = 2,
+    blooddecalfast = 3,
+    shadowdecalpermanent = 4,
+    breakdecal = 5,
+    blooddecalslow = 6,
+    bodyprintdecal = 7
+};
+
 class Decal
 {
 public:
     XYZ position;
-    int type;
+    decal_type type;
     float opacity;
     float rotation;
     float alivetime;
@@ -39,7 +50,7 @@ public:
     XYZ vertex[3];
 
     Decal();
-    Decal(XYZ position, int type, float opacity, float rotation, float brightness, int whichx, int whichy, float size, const Terrain& terrain, bool first);
+    Decal(XYZ position, decal_type type, float opacity, float rotation, float brightness, int whichx, int whichy, float size, const Terrain& terrain, bool first);
 };
 
 #endif