aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_bmp.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 15:30:59 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-04 15:30:59 +0100
commitb15be48033300c00ed2981fb69928905e3a85e86 (patch)
tree83820c3fb66f4f610751ef92780cc1ec53ef7d53 /src/ft_init_bmp.c
parenttryna save (diff)
download42-cub3d-b15be48033300c00ed2981fb69928905e3a85e86.tar.gz
42-cub3d-b15be48033300c00ed2981fb69928905e3a85e86.tar.bz2
42-cub3d-b15be48033300c00ed2981fb69928905e3a85e86.tar.xz
42-cub3d-b15be48033300c00ed2981fb69928905e3a85e86.tar.zst
42-cub3d-b15be48033300c00ed2981fb69928905e3a85e86.zip
Init bmp
Diffstat (limited to '')
-rw-r--r--src/ft_init_bmp.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/ft_init_bmp.c b/src/ft_init_bmp.c
new file mode 100644
index 0000000..cc8d59b
--- /dev/null
+++ b/src/ft_init_bmp.c
@@ -0,0 +1,27 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* 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 <cub3d.h>
+#include <stdint.h>
+
+t_bmp
+ ft_init_bmp(void)
+{
+ t_bmp bmp;
+
+ bmp.file_type = 0x4d42;
+ bmp.file_size = 0;
+ bmp.reserv_one = 0;
+ bmp.reserv_two = 0;
+ bmp.offset_data = 0;
+ return (bmp);
+}