Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 318 vs 322 for /trunk/Source Code/Rendering/Lighting/ShadowMapping/SingleShadowMap.cpp

Diff revisions: vs.
  @@ -52,9 +52,9 @@
52 52 ShadowMap::resolution(resolution, resolutionFactor);
53 53 }
54 54
55 - void SingleShadowMap::render(SceneRenderState& renderState, const DELEGATE_CBK& sceneRenderFunction){
55 + void SingleShadowMap::render(SceneRenderState& renderState, const DELEGATE_CBK<>& sceneRenderFunction){
56 56 ///Only if we have a valid callback;
57 - if(sceneRenderFunction.empty()) {
57 + if(!sceneRenderFunction) {
58 58 ERROR_FN(Locale::get("ERROR_LIGHT_INVALID_SHADOW_CALLBACK"), _light->getGUID());
59 59 return;
60 60 }
  @@ -63,7 +63,7 @@
63 63 renderState.getCameraMgr().popActiveCamera(false);
64 64 }
65 65
66 - void SingleShadowMap::renderInternal(const SceneRenderState& renderState, const DELEGATE_CBK& sceneRenderFunction) {
66 + void SingleShadowMap::renderInternal(const SceneRenderState& renderState, const DELEGATE_CBK<>& sceneRenderFunction) {
67 67 _shadowCamera->lookAt(_light->getPosition(), _light->getPosition() * _light->getDirection());
68 68 _shadowCamera->setProjection(1.0f, 90.0f, vec2<F32>(1.0, _light->getRange()));
69 69 _shadowCamera->renderLookAt();