X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGraphic%2FDecal.hpp;h=1390bccd49118ad8c40863a5daae52b73692331c;hb=331215c3d8ebfa4c6ac3f585b3e888857dc9bb86;hp=34f2a2b21ac9c8edc24f7371a4b4fdf97e9a4950;hpb=e60cbd7add6123d81b3c35543296449b5d02cbaa;p=lugaru.git diff --git a/Source/Graphic/Decal.hpp b/Source/Graphic/Decal.hpp index 34f2a2b..1390bcc 100644 --- a/Source/Graphic/Decal.hpp +++ b/Source/Graphic/Decal.hpp @@ -22,14 +22,26 @@ along with Lugaru. If not, see . #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