tgrekov-fdf
HIVE fdf May 2024
Loading...
Searching...
No Matches
map.h
Go to the documentation of this file.
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* map.h :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2024/05/20 08:48:52 by tgrekov #+# #+# */
9/* Updated: 2024/06/24 06:19:19 by tgrekov ### ########.fr */
10/* */
11/* ************************************************************************** */
12
20#ifndef MAP_H
21# define MAP_H
22
23# include <MLX42.h>
24
35typedef struct s_point
36{
37 int height;
38 int projected[2];
40
53typedef struct s_map
54{
55 int width;
56 int height;
59
78
79#endif
struct s_loop_data t_loop_data
Data structure passed to the drawing loop.
struct s_point t_point
Map point.
struct s_map t_map
Map data.
Data structure passed to the drawing loop.
Definition map.h:73
int y
Starting row index for the drawing loop.
Definition map.h:76
t_map map
Map
Definition map.h:74
mlx_image_t * img
Pointer to mlx image on which to draw lines.
Definition map.h:75
Map data.
Definition map.h:54
int width
Number of columns in the map.
Definition map.h:55
int height
Number of rows in the map.
Definition map.h:56
t_point ** point
2d array of points in [y][x] order
Definition map.h:57
Map point.
Definition map.h:36
int projected[2]
Projected coordinates for this point.
Definition map.h:38
int height
Height extracted from map file.
Definition map.h:37