X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=demos%2Fdesertpillars%2Fsource%2Fdesertpillars.cpp;h=1afd57b8d1a41cc50798976213680061ab15628d;hb=5d9ecb00aea134fa082a0fa6b9c82c643a884a32;hp=dd801e29001e117836cc2cf81745392612b39901;hpb=fb04f4ef9162f58f494cf4323cf3dc66b2f3d4ac;p=libs%2Fgl.git diff --git a/demos/desertpillars/source/desertpillars.cpp b/demos/desertpillars/source/desertpillars.cpp index dd801e29..1afd57b8 100644 --- a/demos/desertpillars/source/desertpillars.cpp +++ b/demos/desertpillars/source/desertpillars.cpp @@ -15,18 +15,15 @@ DesertPillars::Options::Options() { wnd_opts.width = 1920; wnd_opts.height = 1080; - gl_opts.gl_version_major = Graphics::GLOptions::LATEST_VERSION; - gl_opts.core_profile = true; } DesertPillars::DesertPillars(int, char **): window(display, opts.wnd_opts), - gl_device(window, opts.gl_opts), + gl_device(window), keyboard(window), resources(&res_mgr), view(window), - camera(resources.get("Camera.camera")), lighting(resources.get("Desert.lightn")), sphere(resources.get("Sphere.object")), sphere_morph(0.0f), @@ -60,6 +57,7 @@ DesertPillars::DesertPillars(int, char **): content.add(*env_map); content.add(flare); + camera.copy_parameters(resources.get("Camera.camera")); camera.set_debug_name("Main camera"); view.set_content(sequence.get());