X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGraphic%2FDecal.hpp;h=289949118430e4f8b958feea11f7d148fda3b825;hb=6a8cb464330e92163c8feaf101b8b5837c973bba;hp=34f2a2b21ac9c8edc24f7371a4b4fdf97e9a4950;hpb=e60cbd7add6123d81b3c35543296449b5d02cbaa;p=lugaru.git diff --git a/Source/Graphic/Decal.hpp b/Source/Graphic/Decal.hpp index 34f2a2b..2899491 100644 --- a/Source/Graphic/Decal.hpp +++ b/Source/Graphic/Decal.hpp @@ -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,27 @@ along with Lugaru. If not, see . #define _DECAL_HPP_ class Terrain; +class Model; -#include "Math/Quaternions.hpp" +#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 +52,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