From 2eab32ec36ca41263c30bfb30d9fb89514adfe62 Mon Sep 17 00:00:00 2001 From: Dane Johnson Date: Tue, 26 Jan 2021 23:32:36 -0600 Subject: [PATCH] Camera documentation --- core/Camera.cpp | 21 +++++++++++++++++++++ core/Camera.h | 7 +++++++ 2 files changed, 28 insertions(+) diff --git a/core/Camera.cpp b/core/Camera.cpp index e1fa948..ef19679 100644 --- a/core/Camera.cpp +++ b/core/Camera.cpp @@ -1,3 +1,24 @@ +/* + Dane Johnson + + LICENSE + + Couch Copyright (C) 2021 Dane Johnson + + This program comes with ABSOLUTELY NO WARRANTY; without event the + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU General Public License for details at + https://www.gnu.org/licenses/gpl-3.0.html + + This is free software, and you are welcome to redistribute it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, + or (at your option) any later version. + + DESCRIPTION + + This file defines the cameras that can be used to render the scene +*/ #include "Camera.h" Camera::Camera() { diff --git a/core/Camera.h b/core/Camera.h index a320b94..51f6f63 100644 --- a/core/Camera.h +++ b/core/Camera.h @@ -31,7 +31,14 @@ class Camera : public Spatial { public: Camera(); + /** + Sets this camera as the one that Couch will use to render + */ void MakeCurrent(); + /** + Get the Camera that couch is using to render + @return The camera + */ static Camera *GetCurrentCamera(); private: static Camera *currentCamera;