Added deprecation for pixel_put functions (OFF BY DEFAULT) as well as warnings in their descriptions

This commit is contained in:
Daemo
2026-08-09 02:56:36 +02:00
parent 83b9f8f9da
commit 0491089463
3 changed files with 29 additions and 0 deletions
+3
View File
@@ -313,7 +313,10 @@ MLX_API void mlx_on_event(mlx_context mlx, mlx_window win, mlx_event_type event,
* @param x X coordinate
* @param y Y coordinate
* @param color Color of the pixel
*
* WARNING: This function isn't performant, consider drawing to an image beforehand.
*/
MLX_DEPRECATED("Use an image rather than directly communicating with the window")
MLX_API void mlx_pixel_put(mlx_context mlx, mlx_window win, int x, int y, mlx_color color);