]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Graphic/Decal.hpp
Using the Decal class in Model as well
[lugaru.git] / Source / Graphic / Decal.hpp
index 34f2a2b21ac9c8edc24f7371a4b4fdf97e9a4950..094d04355d1fc92159e98e030987be6b8bb835ce 100644 (file)
@@ -22,14 +22,26 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #define _DECAL_HPP_
 
 class Terrain;
+class Model;
 
 #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 +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