Files
RedScarfEngine/Graphics/include/window.hpp
T
Piotr Krygier 649e7f76fe 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.
2023-03-16 12:04:35 +01:00

47 lines
822 B
C++

/**
* @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 */