shengine pre-release
shengine by mrsinho
|
Handling window-related functionalities in the shengine
framework.
More...
Go to the source code of this file.
Data Structures | |
struct | ShInput |
Structure representing input in the shengine framework. More... | |
struct | ShWindow |
Structure representing a window in the shengine framework. More... | |
Macros | |
#define | GLFW_INCLUDE_NONE |
#define | GLFW_INCLUDE_VULKAN |
#define | shSetCursor(glfw_window, glfw_cursor) glfwSetCursor(glfw_window, glfw_cursor) |
Macro to set the cursor of a GLFW window. | |
#define | shPollEvents glfwPollEvents |
Macro to poll events in the GLFW window. | |
#define | shWaitEvents glfwWaitEvents |
Macro to wait for events in the GLFW window. | |
#define | shIsWindowActive(_window) (!glfwWindowShouldClose((_window).window)) |
Macro to check if a window is active. | |
Typedefs | |
typedef struct ShInput | ShInput |
typedef struct ShWindow | ShWindow |
typedef struct ShEngine | ShEngine |
Functions | |
uint8_t | shWindowSetup (const char *title, ShWindow *p_window) |
Sets up a window in the shengine framework. | |
uint8_t | shClearWindow (ShWindow *p_window) |
Clears the contents of a window in the shengine framework. | |
uint8_t | shWindowCreateSurface (ShEngine *p_engine) |
Creates a surface for the shengine module using the window. | |
uint8_t | shUpdateInput (ShWindow *p_window) |
Updates input for the specified window. | |
uint8_t | shGetWindowSize (ShWindow *p_window) |
Retrieves the size of the specified window. | |
uint8_t | shUpdateWindow (ShEngine *p_engine) |
Updates the specified window within the shengine module. | |
Handling window-related functionalities in the shengine
framework.
The shWindow.h file contains structures and functions related to handling windows in the shengine
framework.
#define GLFW_INCLUDE_NONE |
#define GLFW_INCLUDE_VULKAN |
#define shIsWindowActive | ( | _window | ) | (!glfwWindowShouldClose((_window).window)) |
Macro to check if a window is active.
The shIsWindowActive macro checks if a GLFW window is active.
_window | ShWindow structure to check for activity. |
#define shPollEvents glfwPollEvents |
Macro to poll events in the GLFW window.
The shPollEvents macro polls events in the GLFW window.
#define shSetCursor | ( | glfw_window, | |
glfw_cursor | |||
) | glfwSetCursor(glfw_window, glfw_cursor) |
Macro to set the cursor of a GLFW window.
The shSetCursor macro sets the cursor of a GLFW window to a specified cursor.
Example:
glfw_window | GLFW window. |
glfw_cursor | GLFW cursor. |
#define shWaitEvents glfwWaitEvents |
Macro to wait for events in the GLFW window.
The shWaitEvents macro waits for events in the GLFW window.
|
extern |
Clears the contents of a window in the shengine
framework.
p_window | Valid pointer to a ShWindow structure. |
|
extern |
|
extern |
|
extern |
|
extern |
Creates a surface for the shengine
module using the window.
The shWindowCreateSurface
function creates a surface for the shengine
module using the window.
p_engine | Pointer to a valid ShEngine structure. |