From 6d4e57b34335f85e803a126eb77ac5bae6a0812f Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 24 Apr 2014 01:43:48 +0000 Subject: [PATCH] Fixed matrix passed by value. --- common/lc_projection.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/common/lc_projection.h b/common/lc_projection.h index bad46a9e..68666f27 100644 --- a/common/lc_projection.h +++ b/common/lc_projection.h @@ -16,7 +16,7 @@ public: Ortho = 0, Projection, OUT_OF_RANGE, - Cycle, + Cycle }; lcProjection() @@ -53,24 +53,24 @@ public: setTransformInput(pCamera, width, height); } - inline lcVector3 ProjectPoint(const lcMatrix44 mWorldView, const lcVector3& Point) const + inline lcVector3 ProjectPoint(const lcMatrix44& WorldView, const lcVector3& Point) const { int viewport[4] = { 0, 0, mViewPixelWidth, mViewPixelHeight }; - return lcProjectPoint(Point, mWorldView, mTransform, viewport); + return lcProjectPoint(Point, WorldView, mTransform, viewport); } - inline lcVector3 UnprojectPoint(const lcMatrix44 mWorldView, const lcVector3& Point) const + inline lcVector3 UnprojectPoint(const lcMatrix44& WorldView, const lcVector3& Point) const { int viewport[4] = { 0, 0, mViewPixelWidth, mViewPixelHeight }; - return lcUnprojectPoint(Point, mWorldView, mTransform, viewport); + return lcUnprojectPoint(Point, WorldView, mTransform, viewport); } - inline void UnprojectPoints(const lcMatrix44 mWorldView, lcVector3* Points, int NumPoints) const + inline void UnprojectPoints(const lcMatrix44& WorldView, lcVector3* Points, int NumPoints) const { if (NumPoints > 0) { int viewport[4] = { 0, 0, mViewPixelWidth, mViewPixelHeight }; - lcUnprojectPoints(Points, NumPoints, mWorldView, mTransform, viewport); + lcUnprojectPoints(Points, NumPoints, WorldView, mTransform, viewport); } }