]> git.tdb.fi Git - libs/gl.git/blobdiff - demos/forestpond/source/forestpond.h
Implement water simulation and surface shader for forest pond
[libs/gl.git] / demos / forestpond / source / forestpond.h
index b626f4e169a85af4cf4a859932b418d61ca1f50d..c035dcd8eccd52bc19c9c28d09bd091cd1dda54a 100644 (file)
@@ -5,12 +5,14 @@
 #include <msp/core/application.h>
 #include <msp/datafile/directorysource.h>
 #include <msp/gl/device.h>
+#include <msp/gl/orderedscene.h>
 #include <msp/gl/resourcemanager.h>
 #include <msp/gl/resources.h>
 #include <msp/gl/sequence.h>
 #include <msp/gl/windowview.h>
 #include <msp/graphics/display.h>
 #include <msp/graphics/window.h>
+#include "water.h"
 
 class ForestPond: public Msp::RegisteredApplication<ForestPond>
 {
@@ -34,6 +36,9 @@ private:
        std::unique_ptr<Msp::GL::Sequence> sequence;
        Msp::GL::Camera &camera;
 
+       Msp::GL::OrderedScene content;
+       Water water;
+
 public:
        ForestPond(int, char **);