summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/matrix.cpp2
-rw-r--r--common/matrix.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/matrix.cpp b/common/matrix.cpp
index 73e80f6..c434d53 100644
--- a/common/matrix.cpp
+++ b/common/matrix.cpp
@@ -764,7 +764,7 @@ void Matrix::CreatePerspective (float fovy, float aspect, float nearval, float f
#undef M
}
-void Matrix::CreateLookat (float eye[3], float target[3], float up[3])
+void Matrix::CreateLookat (const float *eye, const float *target, const float *up)
{
float x[3], y[3], z[3];
float mag;
diff --git a/common/matrix.h b/common/matrix.h
index 32f5f74..7da4d1d 100644
--- a/common/matrix.h
+++ b/common/matrix.h
@@ -48,7 +48,7 @@ class Matrix
void RotateCenter(float angle, float x, float y, float z, float px, float py, float pz);
bool FromInverse(double* src);
void CreatePerspective (float fovy, float aspect, float nearval, float farval);
- void CreateLookat (float eye[3], float target[3], float up[3]);
+ void CreateLookat (const float *eye, const float *target, const float *up);
public:
float m[16];