Cub3D
 
Loading...
Searching...
No Matches
ft_mlx_render.c File Reference
#include "cub3d_render.h"
Include dependency graph for ft_mlx_render.c:

Functions

void cubmlx_clear (t_mlx *mlx, unsigned int color)
 Clear the backbuffer with a specific color.
 
void cubmlx_putpixel (t_data *data, int x, int y, unsigned int color)
 Puts a pixel onto the backbuffer.
 
void cubmlx_putvertline (t_data *data, t_pos2 pos, int len, unsigned int color)
 Puts a vertical line on the backbuffer. Optimized for vertical lines.
 
void cubmlx_putrect (t_data *data, t_pos2 pos, t_pos2 size, unsigned int color)
 Puts a rectangle onto the backbuffer.
 
void cubmlx_putline (t_data *data, t_pos2 p1, t_pos2 p2, unsigned int color)
 Puts a line onto the backbuffer.