Change build system to CMake
According to my own documentation, the project tree should look entirely different. Also, it should use CMake instead of Make. This commit introduces changes that will make my project tree to adhere to my own documentation.
This commit is contained in:
1 parent
0c45da5cc4
commit
649e7f76fe
17 files changed
+109
-53
No files matched your search
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* @file window.h
|
||||
* @author Piotr Krygier (everyonencancode@gmail.com)
|
||||
* @brief Window control system
|
||||
* @version 0.1
|
||||
* @date 2022-02-15
|
||||
*
|
||||
* @copyright Copyright (c) 2022
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
|
||||
/* Vulkan header MUST be included before glfw */
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
namespace rse::graphics::window
|
||||
{
|
||||
|
||||
/**
|
||||
* @brief Initialize window
|
||||
*
|
||||
* @return uint16_t WINDOW_SUCCESS on success. Possible errors:
|
||||
* WINDOW_VULKAN_NOT_LOADED
|
||||
* WINDOW_WINDOW_NOT_CREATED
|
||||
*
|
||||
*/
|
||||
uint16_t windowInit();
|
||||
|
||||
/**
|
||||
* @brief Main window loop
|
||||
*
|
||||
* @return uint16_t WINDOW_SUCCESS or error code
|
||||
*/
|
||||
uint16_t windowLoop();
|
||||
|
||||
/**
|
||||
* @brief Closes window and terminates GLFW
|
||||
*
|
||||
*/
|
||||
void windowTerminate();
|
||||
|
||||
GLFWwindow* getWindowHandle();
|
||||
|
||||
} /* namespace rse::graphics::window */
|
||||
Reference in new issue
Block a user