From 9b7d14361904a9c2bceb8de335fd5da169fabd59 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Fri, 23 Sep 2022 13:20:30 -0400 Subject: abstract user input, refactor #include's --- engine/xe_engine.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'engine/xe_engine.cpp') diff --git a/engine/xe_engine.cpp b/engine/xe_engine.cpp index e137d11..0ba7df5 100644 --- a/engine/xe_engine.cpp +++ b/engine/xe_engine.cpp @@ -1,17 +1,13 @@ #include "xe_engine.hpp" -#include "xe_image.hpp" - -#include -#include -#include -#include namespace xe { -XeEngine::XeEngine(int width, int height, std::string name) : xeWindow{width, height, name}, +XeEngine::XeEngine(int width, int height, std::string name) +: xeWindow{width, height, name}, xeDevice{xeWindow}, xeRenderer{xeWindow, xeDevice}, - xeCamera{} { + xeCamera{}, + xeInput{xeWindow} { loadDescriptorPool(); alutInit(0, NULL); std::cout << "Audio device: " << alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER) << "\n"; -- cgit v1.2.3-freya