Camera documentation
This commit is contained in:
		@@ -1,3 +1,24 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					   Dane Johnson <dane@danejohnson.org>
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
 | 
					   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"
 | 
					#include "Camera.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Camera::Camera() {
 | 
					Camera::Camera() {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,7 +31,14 @@
 | 
				
			|||||||
class Camera : public Spatial {
 | 
					class Camera : public Spatial {
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
  Camera();
 | 
					  Camera();
 | 
				
			||||||
 | 
					  /**
 | 
				
			||||||
 | 
					     Sets this camera as the one that Couch will use to render
 | 
				
			||||||
 | 
					  */
 | 
				
			||||||
  void MakeCurrent();
 | 
					  void MakeCurrent();
 | 
				
			||||||
 | 
					  /**
 | 
				
			||||||
 | 
					     Get the Camera that couch is using to render
 | 
				
			||||||
 | 
					     @return The camera
 | 
				
			||||||
 | 
					  */
 | 
				
			||||||
  static Camera *GetCurrentCamera();
 | 
					  static Camera *GetCurrentCamera();
 | 
				
			||||||
private:
 | 
					private:
 | 
				
			||||||
  static Camera *currentCamera;
 | 
					  static Camera *currentCamera;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user