MLX42 1.0
MLX42
Loading...
Searching...
No Matches
mlx_monitor.c File Reference
#include "MLX42/MLX42_Int.h"
Include dependency graph for mlx_monitor.c:

Go to the source code of this file.

Functions

void mlx_get_monitor_size (int32_t index, int32_t *width, int32_t *height)
 

Function Documentation

◆ mlx_get_monitor_size()

void mlx_get_monitor_size ( int32_t  index,
int32_t width,
int32_t height 
)

Gets the size of the specified monitor.

Parameters
[in]indexNormally 0, in case of multiple windows, can be specified
[in]widthThe width of the window.
[in]heightThe height of the window.

Definition at line 17 of file mlx_monitor.c.

18{
19 MLX_ASSERT(index >= 0, "Index out of bounds");
22
23 *width = 0;
24 *height = 0;
25
29 return;
30
31 const GLFWvidmode* vidmode;
33 {
34 *width = vidmode->width;
35 *height = vidmode->height;
36 }
37}
#define MLX_NONNULL(var)
Definition MLX42_Int.h:46
#define MLX_ASSERT(cond, msg)
Definition MLX42_Int.h:45
GLuint index
Definition glad.h:3345
GLint GLsizei GLsizei height
Definition glad.h:1965
GLint GLsizei width
Definition glad.h:1965
GLuint GLsizei GLsizei * length
Definition glad.h:3372