X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftechnique.cpp;fp=source%2Ftechnique.cpp;h=aa27d99cc7857118888fced1d59e1647347c2abf;hp=fcb2ffe58358c1ca65d57498a8050fb2c8e27cb6;hb=7b671e6899949d095698425a9b33387e7eb13894;hpb=4acc43935d3b19bae688e89ed42119e326a26f2d diff --git a/source/technique.cpp b/source/technique.cpp index fcb2ffe5..aa27d99c 100644 --- a/source/technique.cpp +++ b/source/technique.cpp @@ -28,6 +28,14 @@ const RenderPass &Technique::get_pass(const GL::Tag &tag) const return get_item(passes, tag); } +bool Technique::has_shaders() const +{ + for(PassMap::const_iterator i=passes.begin(); i!=passes.end(); ++i) + if(i->second.get_shader_program()) + return true; + return false; +} + Technique::Loader::Loader(Technique &t): DataFile::CollectionObjectLoader(t, 0)