option:
Added options for help, debug, save, file using bgoulard lib
structures:
Moved cub3d.h structures to cub3d_struct.h
Added color, dpoint, ipoint, tile, cli, error
Modified t_map, t_player to use previously mentioned struct :
ipoint, dpoint, tyle
24 lines
1 KiB
C
24 lines
1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* rgb_to_color.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: bgoulard <bgoulard@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/11/08 21:49:55 by bgoulard #+# #+# */
|
|
/* Updated: 2024/11/09 00:14:28 by bgoulard ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "cub3d_struct.h"
|
|
|
|
t_color rgb_to_color(int r, int g, int b)
|
|
{
|
|
t_color color;
|
|
|
|
color.r = r;
|
|
color.g = g;
|
|
color.b = b;
|
|
color.a = 0;
|
|
return (color);
|
|
}
|