From 14db2752ae09624b55691bfd92584029808ef847 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 3 Aug 2014 20:12:51 -0700 Subject: [PATCH] Log where the camera is looking --- src/camera.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/camera.cc b/src/camera.cc index 0910426..4605497 100644 --- a/src/camera.cc +++ b/src/camera.cc @@ -4,6 +4,10 @@ */ #include "camera.h" +#include "log.hh" + +#define LOG_NAME "camera" +#include "logModule.hh" #pragma mark - Generic Camera @@ -147,6 +151,8 @@ Camera::LookAt(const Vector3& pt) mDirection *= directionLength; mRight *= isLeftHanded ? rightLength : -rightLength; mUp *= upLength; + + LOG_DEBUG << "Camera is looking at " << pt; }