couch/core/Camera.cpp

18 lines
257 B
C++
Raw Normal View History

2021-01-13 16:47:16 -06:00
#include "Camera.h"
Camera::Camera() {
if (!currentCamera) {
currentCamera = this;
}
}
void Camera::MakeCurrent() {
currentCamera = this;
}
Camera*Camera::GetCurrentCamera() {
return currentCamera;
}
Camera *Camera::currentCamera = nullptr;