#define _TERRAIN_HPP_
#include "Environment/Lights.hpp"
+#include "Graphic/Decal.hpp"
#include "Graphic/gamegl.hpp"
#include "Graphic/Texture.hpp"
#include "Math/Frustum.hpp"
int patch_elements;
- float decaltexcoords[max_decals][3][2];
- XYZ decalvertex[max_decals][3];
- int decaltype[max_decals];
- float decalopacity[max_decals];
- float decalrotation[max_decals];
- float decalalivetime[max_decals];
- float decalbrightness[max_decals];
- XYZ decalposition[max_decals];
- int numdecals;
+ std::vector<Decal> decals;
void AddObject(XYZ where, float radius, int id);
void DeleteDecal(int which);
void drawdecals();
void draw(int layer);
void DoShadows();
+ void deleteDeadDecals();
Terrain();