Device#
-
typedef struct mlx_device_ mlx_device#
A MLX device object.
-
typedef enum mlx_device_type_ mlx_device_type#
Device type.
-
mlx_device mlx_device_new()#
Returns a new empty device.
-
mlx_device mlx_device_new_type(mlx_device_type type, int index)#
Returns a new device of specified
type
, with specifiedindex
.
-
int mlx_device_free(mlx_device dev)#
Free a device.
-
int mlx_device_set(mlx_device *dev, const mlx_device src)#
Set device to provided src device.
-
int mlx_device_tostring(mlx_string *str, mlx_device dev)#
Get device description.
-
bool mlx_device_equal(mlx_device lhs, mlx_device rhs)#
Check if devices are the same.
-
int mlx_device_get_index(int *index, mlx_device dev)#
Returns the index of the device.
-
int mlx_device_get_type(mlx_device_type *type, mlx_device dev)#
Returns the type of the device.
-
int mlx_get_default_device(mlx_device *dev)#
Returns the default MLX device.
-
int mlx_set_default_device(mlx_device dev)#
Set the default MLX device.
-
struct mlx_device_#
- #include <device.h>
A MLX device object.