diff options
Diffstat (limited to 'game/terrain.h')
-rw-r--r-- | game/terrain.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/game/terrain.h b/game/terrain.h index 095b4ef..f5b1b32 100644 --- a/game/terrain.h +++ b/game/terrain.h @@ -37,7 +37,13 @@ private: GLsizei count; }; + struct SurfaceKey { + const Surface * surface; + GlobalPosition2D basePosition; + bool operator<(const SurfaceKey &) const; + }; + glBuffer verticesBuffer; - std::multimap<const Surface *, SurfaceArrayBuffer> meshes; + std::map<SurfaceKey, SurfaceArrayBuffer> meshes; Texture::Ptr grass = std::make_shared<Texture>("grass.png"); }; |