feat: add timedloop()
This commit is contained in:
parent
78a6bbbb68
commit
4bd12ffcf1
6 changed files with 78 additions and 4 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/26 15:26:13 by mcolonna #+# #+# */
|
||||
/* Updated: 2024/03/26 13:20:06 by mcolonna ### ########.fr */
|
||||
/* Updated: 2024/03/26 15:48:24 by mcolonna ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -19,6 +19,7 @@
|
|||
# define WINDOW_WIDTH 600
|
||||
# define WINDOW_HEIGHT 400
|
||||
# define WINDOW_TITLE "undretale"
|
||||
# define FPS 10
|
||||
|
||||
typedef struct s_env
|
||||
{
|
||||
|
|
|
|||
18
includes/timedloop.h
Normal file
18
includes/timedloop.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* timedloop.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/26 15:02:16 by mcolonna #+# #+# */
|
||||
/* Updated: 2024/03/26 15:02:50 by mcolonna ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef TIMEDLOOP_H
|
||||
# define TIMEDLOOP_H
|
||||
|
||||
void timedloop(void (*f)(void));
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue