summaryrefslogtreecommitdiff
path: root/src/first_app.cpp
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2022-09-23 13:20:30 -0400
committerTyler Murphy <tylermurphy534@gmail.com>2022-09-23 13:20:30 -0400
commit9b7d14361904a9c2bceb8de335fd5da169fabd59 (patch)
tree231348855310530145f8ce4bb35931d36bd74438 /src/first_app.cpp
parentdelete old files (diff)
downloadminecraftvulkan-9b7d14361904a9c2bceb8de335fd5da169fabd59.tar.gz
minecraftvulkan-9b7d14361904a9c2bceb8de335fd5da169fabd59.tar.bz2
minecraftvulkan-9b7d14361904a9c2bceb8de335fd5da169fabd59.zip
abstract user input, refactor #include's
Diffstat (limited to 'src/first_app.cpp')
-rwxr-xr-xsrc/first_app.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/first_app.cpp b/src/first_app.cpp
index 423012a..5d8fcf1 100755
--- a/src/first_app.cpp
+++ b/src/first_app.cpp
@@ -1,22 +1,5 @@
#include "first_app.hpp"
-#include "xe_camera.hpp"
-#include "xe_engine.hpp"
-#include "xe_game_object.hpp"
-#include "xe_model.hpp"
-#include "xe_render_system.hpp"
-#include "keyboard_movement_controller.hpp"
-#include "simple_renderer.hpp"
-#include "xe_sound.hpp"
-
-#define GLM_FORCE_RADIANS
-#define GLM_FORCE_DEPTH_ZERO_TO_ONE
-#include <glm/glm.hpp>
-#include <glm/gtc/constants.hpp>
-#include <array>
-
-#include <string>
-
namespace app {
FirstApp::FirstApp() : xeEngine{WIDTH, HEIGHT, "Xenon Vulkan Engine"} {
@@ -45,7 +28,7 @@ void FirstApp::run() {
float frameTime = xeEngine.getFrameTime();
- cameraController.moveInPlaneXZ(xeEngine.getWindow().getGLFWwindow(), frameTime, viewerObject);
+ cameraController.update(xeEngine.getInput(), viewerObject, frameTime);
xeEngine.getCamera().setViewYXZ(viewerObject.transform.translation, viewerObject.transform.rotation);
if(xeEngine.beginFrame()) {