fix sdl3 linking + comments
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -11,7 +11,7 @@ public:
|
||||
App();
|
||||
~App() = default;
|
||||
|
||||
// excecute, called from main()
|
||||
// excecute, called from main(). returns after window closes
|
||||
int run();
|
||||
|
||||
private:
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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_;
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user