MLX42 1.0
MLX42
|
#include "MLX42/MLX42_Int.h"
Go to the source code of this file.
Functions | |
static void | framebuffer_callback (GLFWwindow *window, int width, int height) |
static bool | mlx_create_buffers (mlx_t *mlx) |
static uint32_t | mlx_compile_shader (const char *code, int32_t type) |
static bool | mlx_init_render (mlx_t *mlx) |
mlx_t * | mlx_init (int32_t width, int32_t height, const char *title, bool resize) |
void | mlx_set_setting (mlx_settings_t setting, int32_t value) |
Variables | |
int32_t | mlx_settings [MLX_SETTINGS_MAX] = {false, false, false, true, false} |
mlx_errno_t | mlx_errno = MLX_SUCCESS |
bool | sort_queue = false |
|
static |
Definition at line 17 of file mlx_init.c.
Compiles the given shader source code of a given shader type. Returns shader object via param.
code | The shader source code. |
Type | GL_VERTEX_SHADER, GL_FRAGMENT_SHADER, GL_GEOMETRY_SHADER, ... |
Definition at line 78 of file mlx_init.c.
Definition at line 23 of file mlx_init.c.
Initializes a new MLX42 Instance.
[in] | width | The width of the window. |
[in] | height | The height of the window. |
[in] | title | The title of the window. |
[in] | resize | Enable window resizing. |
Definition at line 164 of file mlx_init.c.
Definition at line 101 of file mlx_init.c.
void mlx_set_setting | ( | mlx_settings_t | setting, |
int32_t | value | ||
) |
Set a setting for MLX42. Settings can manipulate the core behaviour of the engine.
[in] | setting | The settings value, See mlx_settings_t type. |
[in] | value | Settings value to determine the state of the setting. Can be a boolean or an enum / macro. |
Definition at line 213 of file mlx_init.c.
Definition at line 161 of file mlx_init.c.
int32_t mlx_settings[MLX_SETTINGS_MAX] = {false, false, false, true, false} |
Definition at line 160 of file mlx_init.c.
Definition at line 162 of file mlx_init.c.