1 /* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */
2 
3 #ifndef SMOOTH_HEIGHTMESH_DRAWER_H
4 #define SMOOTH_HEIGHTMESH_DRAWER_H
5 
6 struct SmoothHeightMeshDrawer {
7 private:
8 	SmoothHeightMeshDrawer();
9 	~SmoothHeightMeshDrawer();
10 
11 public:
12 	static SmoothHeightMeshDrawer* GetInstance();
13 
14 	void Draw(float yoffset);
DrawEnabledSmoothHeightMeshDrawer15 	bool& DrawEnabled() { return drawEnabled; }
16 
17 private:
18 	bool drawEnabled;
19 };
20 
21 #define smoothHeightMeshDrawer (SmoothHeightMeshDrawer::GetInstance())
22 
23 #endif // SMOOTH_HEIGHTMESH_DRAWER_H
24 
25