fix sdl3 linking + comments

This commit is contained in:
2026-04-12 14:18:55 -05:00
parent f032f152a9
commit 779c51c2f8
10 changed files with 33 additions and 22 deletions

View File

@@ -24,12 +24,10 @@ int App::run() {
utils::debugPrint(__FUNCTION__, __LINE__, "Run app.", utils::DebugLevel::Trace);
engine_->exec();
bool quit = false;
while (!quit) {
// app loop for as long as the window is open
// other threads might be able to change quit to true to auto close
// other threads might be able to change quit to true to auto close in the future
SDL_Event event;
while(SDL_PollEvent(&event)) { // TODO: pass event handling to window

View File

@@ -11,7 +11,7 @@ public:
App();
~App() = default;
// excecute, called from main()
// excecute, called from main(). returns after window closes
int run();
private:

View File

@@ -16,7 +16,7 @@ Window::~Window() {
int Window::init() {
sdlWindow_ = SDL_CreateWindow("How to Vulkan", 1280u, 720u, SDL_WINDOW_VULKAN | SDL_WINDOW_RESIZABLE);
sdlWindow_ = SDL_CreateWindow("Ouros: Vulkan", 1280u, 720u, SDL_WINDOW_VULKAN | SDL_WINDOW_RESIZABLE);
return (sdlWindow_ == nullptr);

View File

@@ -15,8 +15,12 @@ public:
private:
// launches window
int init();
// this window class will eventually hold mouse, keyboard, audio, etc. interfaces, like an SDL3 hub
// app will be able to attach callbacks for mouse and keyboard events
SDL_Window* sdlWindow_;
};