Window management
Window management in the MacroLibX is pretty basic.
🖵 Initialization
Right from the creation you can configure your window using the creation descriptor structure.
As you can see the attributes are clear and I don’t think any explanation is needed for most of them.
The only obscure attribute is render_target
. If a valid mlx_image
is passed, this window will not
be a real system window and will rather act as a gate to use any draw function to draw directly on an image.
This can be used to achieved cool renders like that
⚙️ Functions
In addition to the creation structure the API gives you a few functions to manipulate windows. Each of them are clear on what they do. Here are all of them :
By including the mlx_extended.h
header you get access to more functions :