X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=demos%2Fcubemap.cpp;h=512f519f260d619450dd9f60f938ec1f2db0dffa;hb=9034e81679eeeaa3d1d5d643d3f924d9edb45a68;hp=1778fb7fbfa1567cbb9c6fb2314710096f45d180;hpb=9846a5c6e73b3a146084894a11550dbbf184a22a;p=libs%2Fgl.git diff --git a/demos/cubemap.cpp b/demos/cubemap.cpp index 1778fb7f..512f519f 100644 --- a/demos/cubemap.cpp +++ b/demos/cubemap.cpp @@ -84,7 +84,7 @@ int main() material.set_specular(GL::Color(1.0)); material.set_shininess(100); - GL::Program::StandardFeatures features; + GL::ProgramBuilder::StandardFeatures features; features.lighting = true; features.specular = true; features.material = true; @@ -112,7 +112,7 @@ int main() GL::Bind bind_depth(GL::DepthTest::lequal()); GL::Renderer renderer(0); renderer.set_material(&material); - renderer.set_shader(&shprog, &shdata); + renderer.set_shader_program(&shprog, &shdata); renderer.set_texture(&texture); renderer.matrix_stack() *= GL::Matrix::translation(0, 0, -7); {