Cleanup repo

This commit is contained in:
Piotr Krygier committed 2022-06-28 09:54:41 +02:00
commit 4755371ffa
18 files changed
+20826

No files matched your search

+45
View File
@@ -0,0 +1,45 @@
/**
* @file window.h
* @author Piotr Krygier (everyonencancode@gmail.com)
* @brief Window control system
* @version 0.1
* @date 2022-02-15
*
* @copyright Copyright (c) 2022
*
*/
#ifndef WINDOW_HANDLER_H
#define WINDOW_HANDLER_H
/* Vulkan header MUST be included before glfw */
#include <vulkan/vulkan.h>
#include <GLFW/glfw3.h>
/**
* @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();
#endif /* WINDOW_HANDLER_H */