/*
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.
#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;
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