From 88ec0392a07349f01b9d55f0610d5139e6ceae84 Mon Sep 17 00:00:00 2001 From: yangxiao Date: Thu, 4 Sep 2014 17:15:28 +0800 Subject: [PATCH] remove unused method --- cocos/base/CCCamera.cpp | 12 ------------ cocos/base/CCCamera.h | 6 ------ 2 files changed, 18 deletions(-) diff --git a/cocos/base/CCCamera.cpp b/cocos/base/CCCamera.cpp index 3c17d9cddc..6067830fd1 100644 --- a/cocos/base/CCCamera.cpp +++ b/cocos/base/CCCamera.cpp @@ -101,18 +101,6 @@ const Mat4& Camera::getViewMatrix() const } return _view; } -const Mat4& Camera::getInverseViewMatrix() const -{ - Mat4 viewInv(getNodeToWorldTransform()); - static int count = sizeof(float) * 16; - if (memcmp(viewInv.m, _viewInv.m, count) != 0) - { - _viewProjectionDirty = true; - _viewInv = viewInv; - _view = viewInv.getInversed(); - } - return _viewInv; -} void Camera::lookAt(const Vec3& lookAtPos, const Vec3& up) { Vec3 upv = up; diff --git a/cocos/base/CCCamera.h b/cocos/base/CCCamera.h index b308b7afbb..aa95b15064 100644 --- a/cocos/base/CCCamera.h +++ b/cocos/base/CCCamera.h @@ -119,12 +119,6 @@ public: * @return The camera view matrix. */ const Mat4& getViewMatrix() const; - /** - * Gets the camera's inverse view matrix. - * - * @return The camera inverse view matrix. - */ - const Mat4& getInverseViewMatrix() const; /**get view projection matrix*/ const Mat4& getViewProjectionMatrix() const;