aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_bmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_init_bmp.c')
-rw-r--r--src/ft_init_bmp.c47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/ft_init_bmp.c b/src/ft_init_bmp.c
new file mode 100644
index 0000000..18c6002
--- /dev/null
+++ b/src/ft_init_bmp.c
@@ -0,0 +1,47 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_init_bmp.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/02/14 17:28:46 by rbousset #+# #+# */
+/* Updated: 2020/02/14 17:28:46 by rbousset ### ########lyon.fr */
+/* */
+/* ************************************************************************** */
+
+#include <libft.h>
+#include <cub3d.h>
+#include <stdint.h>
+
+t_bmp_info
+ ft_init_bmp_info(void)
+{
+ t_bmp_info bmp_info;
+
+ bmp_info.size = 0;
+ bmp_info.width = 0;
+ bmp_info.height = 0;
+ bmp_info.planes = 1;
+ bmp_info.bit_count = 0;
+ bmp_info.compression = 0;
+ bmp_info.size_image = 0;
+ bmp_info.x_pixels_per_meter = 0;
+ bmp_info.y_pixels_per_meter = 0;
+ bmp_info.colors_used = 0;
+ bmp_info.colors_important = 0;
+ return (bmp_info);
+}
+
+t_bmp_file
+ ft_init_bmp(void)
+{
+ t_bmp_file bmp_file;
+
+ bmp_file.file_type = 0x4d42;
+ bmp_file.file_size = 0;
+ bmp_file.reserv_one = 0;
+ bmp_file.reserv_two = 0;
+ bmp_file.offset_data = 0;
+ return (bmp_file);
+}