changed rgb deal, and improve memorybook with 2d

This commit is contained in:
hugogogo
2022-05-01 22:55:00 +02:00
parent 43852938c4
commit eb5f2db7fa
9 changed files with 60 additions and 54 deletions

View File

@@ -6,7 +6,7 @@
*/
/* nbr pixel player move */
# define PLR_MV 1
# define PLR_MV 2
/* degree of rotation of the player per press */
# define PLR_ROT 2
/* nbr key you can press at the same time */

View File

@@ -89,8 +89,10 @@ typedef struct s_txt
char *txt_south;
char *txt_east;
char *txt_west;
int rgb_floor[3];
int rgb_ceiling[3];
int rgb_floor;
int rgb_ceiling;
// int rgb_floor[3];
// int rgb_ceiling[3];
} t_txt;
/*

View File

@@ -1,10 +1,15 @@
#ifndef MEMORYBOOK_H
# define MEMORYBOOK_H
// memorybook.c
void mb_init(void(*f)(void*), void *param);
void *mb_alloc(size_t size);
void mb_add(void *addr);
void mb_free(void *addr);
void mb_exit(char *str);
void mb_exit(char *str, int status);
// memorybook_2d.c
void mb_add_2d(void **addr, int nb);
void mb_free_2d(void **addr, int nb);
#endif