Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-04-26 11:19:18 +0400
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-04-26 11:19:18 +0400
commit5df9926f491f532422b20cb3315321e245480129 (patch)
tree721cc3c04546ed023f074d9f124faf7428aa33bb /source/gameengine/Ketsji/KX_Camera.h
parentf331fc8fbbae05530fe0d28b510a5c0deeb03968 (diff)
Fix MouseFocus Sensor objects for dynamic cameras. (Bug 1165)
Diffstat (limited to 'source/gameengine/Ketsji/KX_Camera.h')
-rw-r--r--source/gameengine/Ketsji/KX_Camera.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/gameengine/Ketsji/KX_Camera.h b/source/gameengine/Ketsji/KX_Camera.h
index 25a3b891e01..0185a0ba9d5 100644
--- a/source/gameengine/Ketsji/KX_Camera.h
+++ b/source/gameengine/Ketsji/KX_Camera.h
@@ -96,10 +96,12 @@ public:
void SetModelviewMatrix(const MT_Matrix4x4 & mat);
/** Gets the projection matrix that is used by the rasterizer. */
- void GetProjectionMatrix(MT_Matrix4x4 & mat);
+ const MT_Matrix4x4& GetProjectionMatrix();
- /** Gets the modelview matrix that is used by the rasterizer. */
- void GetModelviewMatrix(MT_Matrix4x4 & mat);
+ /** Gets the modelview matrix that is used by the rasterizer.
+ * @warning If the Camera is a dynamic object then this method may return garbage. Use GetCameraToWorld() instead.
+ */
+ const MT_Matrix4x4& GetModelviewMatrix();
/** Gets the focal lenght. */
float GetLens();