Verified Commit 0e7d48c8 authored by Josch Morgenstern's avatar Josch Morgenstern
Browse files

[#42] remove camera and window from controller

parent 26df15dc
#include "vkcv/camera/CameraController.hpp"
#include <iostream>
namespace vkcv {
Camera& CameraController::getCamera() {
return *m_camera;
}
void CameraController::setCamera(Camera &camera) {
m_camera = &camera;
void CameraController::updateCamera(double deltaTime, Camera &camera) {
}
void CameraController::setWindow(Window &window) {
m_window = &window;
m_lastX = m_window->getWidth() / 2.0;
m_lastY = m_window->getHeight() / 2.0;
}
void CameraController::updateCamera(double deltaTime) {}
void CameraController::keyCallback(int key, int scancode, int action, int mods) {}
void CameraController::keyCallback(int key, int scancode, int action, int mods, Camera &camera) {}
void CameraController::scrollCallback( double offsetX, double offsetY) {}
void CameraController::scrollCallback( double offsetX, double offsetY, Camera &camera) {}
void CameraController::mouseMoveCallback(double offsetX, double offsetY) {}
void CameraController::mouseMoveCallback(double offsetX, double offsetY, Camera &camera) {}
void CameraController::mouseButtonCallback(int button, int action, int mods) {}
void CameraController::mouseButtonCallback(int button, int action, int mods, Camera &camera) {}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment