Cub3D
 
Loading...
Searching...
No Matches
ft_draw_circle.c File Reference
#include "data_structure.h"
#include "ft_draw.h"
#include "mlx.h"
#include <stdbool.h>
Include dependency graph for ft_draw_circle.c:

Functions

void ft_draw_circle (t_mlx *mlx, void *win_ptr, t_circle element)
 Draw a circle directly on the window.
 

Function Documentation

◆ ft_draw_circle()

void ft_draw_circle ( t_mlx * mlx,
void * win_ptr,
t_circle element )

Draw a circle directly on the window.

Deprecated
Uses an old technique, should put pixels onto a img first and after onto the window (it's at least 10x faster)
Parameters
[in,out]mlxmlx structure
[in,out]win_ptrwindow pointer
[in]elementelement