X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=demos%2Fdesertpillars%2Fsource%2Fdesertpillars.h;h=7aae1c2d903dbc52e0593950861b14152a5f94e0;hb=fd92cb5c68eefa4d32fbedbfa41fecc433a886a3;hp=18522a57ca324f0449d52d50d7b7cf892d3c3365;hpb=33577fd6ef75f1c3af77720fde351459727ca68c;p=libs%2Fgl.git diff --git a/demos/desertpillars/source/desertpillars.h b/demos/desertpillars/source/desertpillars.h index 18522a57..7aae1c2d 100644 --- a/demos/desertpillars/source/desertpillars.h +++ b/demos/desertpillars/source/desertpillars.h @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include @@ -16,7 +17,6 @@ #include #include #include -#include #include #include #include @@ -27,7 +27,6 @@ private: struct Options { Msp::Graphics::WindowOptions wnd_opts; - Msp::Graphics::GLOptions gl_opts; Options(); }; @@ -36,9 +35,10 @@ private: { private: Msp::DataFile::DirectorySource source; + Msp::GL::ResourceManager res_mgr; public: - Resources(); + Resources(Msp::GL::ResourceManager *); }; class MorphSphere: public Msp::GL::ObjectInstance @@ -68,8 +68,9 @@ private: Msp::Graphics::Display display; Options opts; Msp::Graphics::Window window; - Msp::Graphics::GLContext gl_ctx; + Msp::GL::Device gl_device; Msp::Input::Keyboard keyboard; + Msp::GL::ResourceManager res_mgr; Resources resources; Msp::GL::WindowView view; @@ -77,13 +78,8 @@ private: Msp::GL::Camera camera; const Msp::GL::Lighting &lighting; - std::unique_ptr sky; - std::unique_ptr shadow_seq; - std::unique_ptr shadow_seq_thsm; - std::unique_ptr shadow_map; std::unique_ptr env_seq; std::unique_ptr env_map; - std::unique_ptr global_env; Msp::GL::OrderedScene content; MorphSphere sphere;