Header file for the draw functions. More...


Go to the source code of this file.
Data Structures | |
| struct | s_circle |
| Structure used to store circle informations. More... | |
Typedefs | |
| typedef struct s_circle | t_circle |
Functions | |
| void | ft_put_pixel_to_img (t_img *img, int x, int y, int color) |
| Should only be used for images with 32 bits per pixel. (standard) It will result as undefined behavior if used on images with other bit depths. it's because of alignment issues with the pixel data. | |
| void | ft_put_pixel_to_img_24bp (t_img *img, int x, int y, int color) |
| Special case for 24 bits per pixel images. | |
| void | ft_draw_circle (t_mlx *mlx, void *win_ptr, t_circle element) __attribute__((deprecated)) |
| Draw a circle directly on the window. | |
| void | ft_put_circle_to_img (t_mlx *mlx, void *win_ptr, t_img *img, t_circle element) |
| Put a circle to the image. | |
| void | ft_put_circle_to_win (t_mlx *mlx, void *win_ptr, t_circle element, bool is_enabled) |
| Put ON circle if is_enabled, put OFF circle if not. | |
| void | ft_put_circle_specific (t_mlx *mlx, void *win_settings_ptr, enum e_screen_size num, bool is_enabled) |
| Function to put the specific case of circles defined by the enum. | |
| void | ft_put_all_circle_to_win (t_mlx *mlx, void *win_settings_ptr, bool is_enabled) |
| Function to pull all the circle to the window following their state. | |
Header file for the draw functions.
Draw a circle directly on the window.
| [in,out] | mlx | mlx structure |
| [in,out] | win_ptr | window pointer |
| [in] | element | element |
| void ft_put_all_circle_to_win | ( | t_mlx * | mlx, |
| void * | win_settings_ptr, | ||
| bool | is_enabled ) |
Function to pull all the circle to the window following their state.
| [in,out] | mlx | mlx structure |
| [in,out] | win_settings_ptr | settings window pointer |
| [in] | is_enabled | true is ON, false is OFF |

| void ft_put_circle_specific | ( | t_mlx * | mlx, |
| void * | win_settings_ptr, | ||
| enum e_screen_size | num, | ||
| bool | is_enabled ) |
Function to put the specific case of circles defined by the enum.
| [in,out] | mlx | mlx structure |
| [in,out] | win_settings_ptr | settings window pointer |
| [in,out] | num | state to put |
| [in] | is_enabled | true is ON, false is OFF |

Put a circle to the image.
| [in,out] | mlx | mlx structure |
| [in,out] | win_ptr | window pointer |
| [in,out] | img | img structure |
| [in] | element | circle element to draw |

Put ON circle if is_enabled, put OFF circle if not.
| [in,out] | mlx | mlx structure |
| [in,out] | win_ptr | window pointer |
| [in] | element | element |
| [in] | is_enabled | true is ON, false is OFF |
| void ft_put_pixel_to_img | ( | t_img * | img, |
| int | x, | ||
| int | y, | ||
| int | color ) |
Should only be used for images with 32 bits per pixel. (standard) It will result as undefined behavior if used on images with other bit depths. it's because of alignment issues with the pixel data.
| [in,out] | img | image structure |
| [in] | x | x axis |
| [in] | y | y axis |
| [in] | color | color |
| void ft_put_pixel_to_img_24bp | ( | t_img * | img, |
| int | x, | ||
| int | y, | ||
| int | color ) |
Special case for 24 bits per pixel images.
| [in,out] | img | image structure |
| [in] | x | x axis |
| [in] | y | y axis |
| [in] | color | color |