X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=demos%2Fdesertpillars%2Fsource%2Fdesertpillars.cpp;h=bfb25f30c6b5c3564dee3746955ace47ddf8bf51;hp=532a94990120d98f4eb3fc55edfca8eb899de5d6;hb=HEAD;hpb=f0414f06fc2463e9765c9492dce60e0468dceb3c diff --git a/demos/desertpillars/source/desertpillars.cpp b/demos/desertpillars/source/desertpillars.cpp index 532a9499..bfb25f30 100644 --- a/demos/desertpillars/source/desertpillars.cpp +++ b/demos/desertpillars/source/desertpillars.cpp @@ -4,7 +4,6 @@ #include #include #include -#include #include #include #include "desertpillars.h" @@ -16,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), @@ -53,7 +49,7 @@ DesertPillars::DesertPillars(int, char **): env_bld.set_debug_name("Environment sequence"); env_seq.reset(env_bld.build()); - env_map = make_unique(256, GL::RGB16F, 7, sphere, *env_seq); + env_map = make_unique(256, GL::RGBA16F, 7, sphere, *env_seq); env_map->set_debug_name("Environment map"); sphere.set_matrix(GL::Matrix::translation(GL::Vector3(0.0f, 0.0f, 3.3f))); @@ -61,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());