Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 852 vs 856 for /trunk/Source Code/Environment/Sky/Sky.cpp

Diff revisions: vs.
  @@ -33,7 +33,7 @@
33 33 {
34 34 }
35 35
36 - bool Sky::load() {
36 + bool Sky::load(DELEGATE_CBK<void, Resource_ptr> onLoadCallback) {
37 37 if (_sky != nullptr) {
38 38 return false;
39 39 }
  @@ -71,7 +71,8 @@
71 71 _skyShader->Uniform("enable_sun", true);
72 72 _boundingBox.set(vec3<F32>(-radius), vec3<F32>(radius));
73 73 Console::printfn(Locale::get(_ID("CREATE_SKY_RES_OK")));
74 - return Resource::load();
74 +
75 + return Resource::load(onLoadCallback);
75 76 }
76 77
77 78 void Sky::postLoad(SceneGraphNode& sgn) {