Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 259 vs 260 for /trunk/Source Code/Rendering/Lighting/Headers/Light.h

Diff revisions: vs.
  @@ -154,7 +154,12 @@
154 154 inline void setVPMatrix(U8 index, const mat4<F32>& newValue) { _properties._lightVP[index].set(newValue); _dirty = true;}
155 155 inline void setFloatValue(U8 index, F32 newValue) { _properties._floatValues[index] = newValue; _dirty = true;}
156 156
157 + inline void shadowMapResolutionFactor(U8 factor) {_resolutionFactor = factor;}
158 + inline U8 shadowMapResolutionFactor() const {return _resolutionFactor;}
159 +
157 160 protected:
161 + friend class LightManager;
162 +
158 163 ///When the SceneGraph calls the light's render function, we draw the impostor if needed
159 164 virtual void render(SceneGraphNode* const sgn);
160 165 void postLoad(SceneGraphNode* const sgn);
  @@ -164,7 +169,8 @@
164 169 ///Set light mode
165 170 ///@param mode Togglable, Movable, Simple, Dominant (see LightMode enum)
166 171 void setLightMode(const LightMode& mode);
167 -
172 + ///Called when the rendering resolution changes
173 + void updateResolution(I32 newWidth, I32 newHeight);
168 174 private:
169 175 ///Enum to char* translation for vector properties
170 176 const char* LightEnum(const LightPropertiesV& key) const;
  @@ -180,8 +186,8 @@
180 186 LightMode _mode;
181 187
182 188 private:
183 -
184 - U8 _slot;
189 + U8 _resolutionFactor;
190 + U8 _slot;
185 191 bool _drawImpostor;
186 192 bool _castsShadows;
187 193 bool _updateLightBB;