sigh moving to windows

This commit is contained in:
2026-04-11 00:24:26 -05:00
parent f8f103e5e9
commit 9c98964588
5 changed files with 30 additions and 1 deletions

View File

@@ -11,6 +11,10 @@ set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR})
#add_subdirectory(src)
set(SDL3_DIR "C:/Users/pmcge/Downloads/SDL3-devel-3.4.4-VC/SDL3-3.4.4")
find_package(SDL3 REQUIRED)
# TODO: cascade cmakelists.txt
add_executable(ouros
src/main.cpp
@@ -21,3 +25,7 @@ target_include_directories(ouros PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/"
"${CMAKE_CURRENT_SOURCE_DIR}/src"
)
target_link_libraries(ouros PRIVATE
SDL3::SDL3
)

View File

@@ -41,8 +41,9 @@ Below is beyond Sascha's guide, but available elsewhere on his github. These are
### Dependencies:
- CMake > 3.2
- C++20
- C++20 compatible compiler (I use g++12 or MSVC++17)
- Vulkan compatible gpu drivers (tested with an RTX3070 and an R9700)
- SDL3
- Will add more as the project grows
### Clone respository:

View File

View File

@@ -0,0 +1,14 @@
#include "Window.hpp"
Window::Window() {
init();
}
int Window::init() {
window_ = SDL_CreateWindow("How to Vulkan", 1280u, 720u, SDL_WINDOW_VULKAN | SDL_WINDOW_RESIZABLE);
}

View File

@@ -1,6 +1,9 @@
#pragma once
#include "SDL3/SDL.h"
#include "SDL3/SDL_Vulkan.h"
class Window {
public:
@@ -10,6 +13,9 @@ public:
private:
int init();
SDL_Window* window_;
};