Added memorybook to parsing and cleaned most of the files
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* init_struct.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: pblagoje <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/05/04 13:57:22 by pblagoje #+# #+# */
|
||||
/* Updated: 2022/05/04 13:57:28 by pblagoje ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "cube3d.h"
|
||||
|
||||
static void init_null_mlx_ptr(t_game *game)
|
||||
@@ -35,11 +47,8 @@ t_game *init_struct(void)
|
||||
t_game *game;
|
||||
|
||||
game = mb_alloc(sizeof(t_game));
|
||||
// map
|
||||
init_map(&(game->map));
|
||||
// init textures and floor/ceiling colors
|
||||
init_txt_null(&(game->txt));
|
||||
// put all mlx allocated pointer to null
|
||||
init_null_mlx_ptr(game);
|
||||
return (game);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user