X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fresources.cpp;h=b8eec774387ea94233c6aa0223095199042ea12e;hp=c34139b25e139e1b53e588c732715afc30a7ce62;hb=679f0fd1f3504b5536f18943e188606887f3785c;hpb=18240e2bb031551e9c72a55c7d974904d209760a diff --git a/source/resources.cpp b/source/resources.cpp index c34139b2..b8eec774 100644 --- a/source/resources.cpp +++ b/source/resources.cpp @@ -2,6 +2,7 @@ #include #include "animation.h" #include "armature.h" +#include "camera.h" #include "font.h" #include "keyframe.h" #include "lighting.h" @@ -34,6 +35,7 @@ Resources::Resources(): { add_type().suffix(".anim").keyword("animation"); add_type().suffix(".arma").keyword("armature"); + add_type().keyword("camera"); add_type().keyword("font"); add_type().suffix(".kframe").keyword("keyframe"); add_type().suffix(".lightn").keyword("lighting"); @@ -139,7 +141,7 @@ Program *Resources::create_program(const string &name) if(RefPtr io = open_from_sources(name)) { ProgramCompiler compiler; - compiler.compile(*io, this); + compiler.compile(*io, this, name); RefPtr program = new Program; compiler.add_shaders(*program); program->link();