15#define GLFW_INCLUDE_NONE
16#define GLFW_INCLUDE_VULKAN
17#include <GLFW/glfw3.h>
99#define shSetCursor(glfw_window, glfw_cursor)\
100 glfwSetCursor(glfw_window, glfw_cursor)
108#define shPollEvents glfwPollEvents
116#define shWaitEvents glfwWaitEvents
137#define shIsWindowActive(_window)\
138 (!glfwWindowShouldClose((_window).window))
197static uint8_t shIsKeyPressed(
const ShWindow window,
const uint32_t key) {
208static uint8_t shIsKeyDown(
const ShWindow window,
const uint32_t key) {
219static uint8_t shIsKeyReleased(
const ShWindow window,
const uint32_t key) {
230static uint8_t shIsKeyRepeated(
const ShWindow window,
const uint32_t key) {
241static uint8_t shIsMouseButtonPressed(
const ShWindow window,
const uint32_t button) {
252static uint8_t shIsMouseButtonDown(
const ShWindow window,
const uint32_t button) {
263static uint8_t shIsMouseButtonReleased(
const ShWindow window,
const uint32_t button) {
274static uint8_t shIsMouseButtonRepeated(
const ShWindow window,
const uint32_t button) {
uint8_t shWindowCreateSurface(ShEngine *p_engine)
Creates a surface for the shengine module using the window.
Definition shWindow.c:68
uint8_t shGetWindowSize(ShWindow *p_window)
Retrieves the size of the specified window.
Definition shWindow.c:98
uint8_t shWindowSetup(const char *title, ShWindow *p_window)
Sets up a window in the shengine framework.
Definition shWindow.c:13
uint8_t shUpdateWindow(ShEngine *p_engine)
Updates the specified window within the shengine module.
Definition shWindow.c:117
uint8_t shClearWindow(ShWindow *p_window)
Clears the contents of a window in the shengine framework.
Definition shWindow.c:57
uint8_t shUpdateInput(ShWindow *p_window)
Updates input for the specified window.
Definition shWindow.c:81
Represents the ShEngine structure, which is the main instance of the engine.
Definition shEngine.h:78
ShWindow window
Definition shEngine.h:80
Structure representing a window in the shengine framework.
Definition shWindow.h:54
uint32_t height
Definition shWindow.h:59
const char ** pp_instance_extensions
Definition shWindow.h:61
GLFWwindow * window
Definition shWindow.h:55
uint8_t surface_resize_pending
Definition shWindow.h:64
int32_t default_cursor_icons[4]
Definition shWindow.h:57
GLFWcursor * default_cursors[4]
Definition shWindow.h:56
ShInput input
Definition shWindow.h:63
uint32_t width
Definition shWindow.h:58
const char * title
Definition shWindow.h:60
uint32_t instance_extension_count
Definition shWindow.h:62