]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Graphic/Decal.hpp
Update copyright year to 2017
[lugaru.git] / Source / Graphic / Decal.hpp
index 34f2a2b21ac9c8edc24f7371a4b4fdf97e9a4950..d4c99413cb09fb1193b65de009e882eb62241143 100644 (file)
@@ -1,6 +1,6 @@
 /*
 Copyright (C) 2003, 2010 - Wolfire Games
-Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
+Copyright (C) 2010-2017 - Lugaru contributors (see AUTHORS file)
 
 This file is part of Lugaru.
 
@@ -22,14 +22,26 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #define _DECAL_HPP_
 
 class Terrain;
-
-#include "Math/Quaternions.hpp"
+class Model;
+
+#include "Math/XYZ.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 +51,8 @@ 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);
+    Decal(XYZ position, decal_type type, float opacity, float rotation, float size, const Model& model, int i, int which);
 };
 
 #endif