Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 280 vs 283 for /trunk/Source Code/Hardware/Video/Headers/GFXDevice.h

Diff revisions: vs.
  @@ -283,7 +283,7 @@
283 283 protected:
284 284 friend class Camera;
285 285
286 - F32* lookAt(const mat4<F32>& viewMatrix);
286 + F32* lookAt(const mat4<F32>& viewMatrix, const vec3<F32>& eyePos);
287 287 ///sets an ortho projection, updating any listeners if needed
288 288 F32* setProjection(const vec4<F32>& rect, const vec2<F32>& planes);
289 289 ///sets a perspective projection, updating any listeners if needed
  @@ -291,8 +291,8 @@
291 291 ///sets the view frustum to either the left or right eye position for anaglyph rendering
292 292 void setAnaglyphFrustum(F32 camIOD, const vec2<F32>& zPlanes, F32 aspectRatio, F32 verticalFoV, bool rightFrustum = false);
293 293
294 - void updateViewMatrix();
295 - void updateProjectionMatrix();
294 + void updateViewMatrix(const vec3<F32>& eyePos);
295 + void updateProjectionMatrix(const vec2<F32>& zPlanes);
296 296
297 297 private:
298 298
  @@ -369,6 +369,8 @@
369 369 ///getMatrix cache
370 370 mat4<F32> _mat4Cache;
371 371 mat3<F32> _mat3Cache;
372 + ///Default camera's cached zPlanes
373 + vec2<F32> _cachedSceneZPlanes;
372 374 /// AA system
373 375 U8 _MSAASamples;
374 376 U8 _FXAASamples;