Skip to content

Commit

Permalink
fixing documentation in headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Kbz-8 committed Dec 17, 2024
1 parent ffff472 commit b6660b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions includes/mlx.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: maldavid <contact@kbz8.me> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/04 16:56:35 by maldavid #+# #+# */
/* Updated: 2024/12/17 02:23:40 by maldavid ### ########.fr */
/* Updated: 2024/12/17 02:58:07 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -207,7 +207,7 @@ MLX_API void mlx_get_screen_size(mlx_context mlx, mlx_window win, int* w, int* h


/**
* @brief Gives a function to be executed at each loop turn
* @brief Gives another function to be executed at each loop turn
*
* @param mlx Internal MLX application
* @param f The function
Expand Down Expand Up @@ -281,7 +281,7 @@ typedef enum mlx_event_type
} mlx_event_type;

/**
* @brief Gives a function to be executed on event type
* @brief Gives a function to be executed on event type, does not override previous functions
*
* @param mlx Internal MLX application
* @param win Internal window
Expand All @@ -303,7 +303,7 @@ MLX_API void mlx_on_event(mlx_context mlx, mlx_window win, mlx_event_type event,
* @param win Internal window
* @param x X coordinate
* @param y Y coordinate
* @param color Color of the pixel (coded on 4 bytes in an int, 0xRRGGBBAA)
* @param color Color of the pixel
*/
MLX_API void mlx_pixel_put(mlx_context mlx, mlx_window win, int x, int y, mlx_color color);

Expand Down Expand Up @@ -405,7 +405,7 @@ MLX_API void mlx_put_image_to_window(mlx_context mlx, mlx_window win, mlx_image
* @param win Internal window
* @param x X coordinate
* @param y Y coordinate
* @param color Color of the pixel (coded on 4 bytes in an int, 0xAARRGGBB)
* @param color Color of the pixel
* @param str Text to put
*/
MLX_API void mlx_string_put(mlx_context mlx, mlx_window win, int x, int y, mlx_color color, char* str);
Expand Down
7 changes: 4 additions & 3 deletions includes/mlx_extended.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: maldavid <contact@kbz8.me> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/14 16:17:10 by maldavid #+# #+# */
/* Updated: 2024/12/16 20:33:50 by maldavid ### ########.fr */
/* Updated: 2024/12/17 02:59:50 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -83,7 +83,8 @@ MLX_API void mlx_restore_window(mlx_context mlx, mlx_window win);
* @param win Internal window
* @param x X coordinate
* @param y Y coordinate
* @param pixels Array of pixels (coded on 4 bytes in an int, 0xRRGGBBAA)
* @param pixels Array of pixels
* @param pixels_size Size or the array of pixels
*/
MLX_API void mlx_pixel_put_array(mlx_context mlx, mlx_window win, int x, int y, mlx_color* pixels, size_t pixels_size);

Expand All @@ -96,7 +97,7 @@ MLX_API void mlx_pixel_put_array(mlx_context mlx, mlx_window win, int x, int y,
* @param y Y coordinate
* @param w Width
* @param h Height
* @param pixels Array of pixels (coded on 4 bytes in an int, 0xRRGGBBAA)
* @param pixels Array of pixels
*
* Note: it is responsability of the user to make sure the size of `pixels` is
* big enough for the given region.
Expand Down

0 comments on commit b6660b9

Please sign in to comment.