sigh moving to windows
This commit is contained in:
@@ -11,6 +11,10 @@ set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR})
|
|||||||
|
|
||||||
#add_subdirectory(src)
|
#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
|
# TODO: cascade cmakelists.txt
|
||||||
add_executable(ouros
|
add_executable(ouros
|
||||||
src/main.cpp
|
src/main.cpp
|
||||||
@@ -21,3 +25,7 @@ target_include_directories(ouros PRIVATE
|
|||||||
"${CMAKE_CURRENT_SOURCE_DIR}/"
|
"${CMAKE_CURRENT_SOURCE_DIR}/"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/src"
|
"${CMAKE_CURRENT_SOURCE_DIR}/src"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
target_link_libraries(ouros PRIVATE
|
||||||
|
SDL3::SDL3
|
||||||
|
)
|
||||||
|
|||||||
@@ -41,8 +41,9 @@ Below is beyond Sascha's guide, but available elsewhere on his github. These are
|
|||||||
|
|
||||||
### Dependencies:
|
### Dependencies:
|
||||||
- CMake > 3.2
|
- 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)
|
- Vulkan compatible gpu drivers (tested with an RTX3070 and an R9700)
|
||||||
|
- SDL3
|
||||||
- Will add more as the project grows
|
- Will add more as the project grows
|
||||||
|
|
||||||
### Clone respository:
|
### Clone respository:
|
||||||
|
|||||||
0
scripts/install_dependencies.ps1
Normal file
0
scripts/install_dependencies.ps1
Normal 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);
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "SDL3/SDL.h"
|
||||||
|
#include "SDL3/SDL_Vulkan.h"
|
||||||
|
|
||||||
class Window {
|
class Window {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -10,6 +13,9 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
int init();
|
||||||
|
|
||||||
|
SDL_Window* window_;
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user