]> git.treefish.org Git - seamulator.git/commitdiff
Added unit length getter
authorAlexander Schmidt <alex@treefish.org>
Fri, 15 Jul 2016 11:26:10 +0000 (13:26 +0200)
committerAlexander Schmidt <alex@treefish.org>
Fri, 15 Jul 2016 11:26:10 +0000 (13:26 +0200)
watersurface.cpp
watersurface.h

index 930cf7f80c5d34c74e8495c1517377a3d14b6716..c27e7dbed23de0bd92d2a76d6482728d2cc84025 100644 (file)
@@ -24,6 +24,11 @@ int WaterSurface::size() const
   return m_size;
 }
 
+double WaterSurface::unitLength() const
+{
+  return m_unitLength;
+}
+
 void WaterSurface::draw() const
 {
   glScalef(m_unitLength, m_unitLength, 1.0f);
index 7882197f2865ad95efc63eaf44e4a242a8b301c7..31e0e60f002a3bf3d4ad6b60eaa06af35e9b907f 100644 (file)
@@ -13,6 +13,7 @@ class WaterSurface
   SurfacePoint& at(int x, int y);
   const SurfacePoint& at(int x, int y) const;
   int size() const;
+  double unitLength() const;
   void draw() const;
   void drawSingleTile(int x, int y) const;