aboutsummaryrefslogtreecommitdiff
path: root/teensy/teensy.h
diff options
context:
space:
mode:
Diffstat (limited to 'teensy/teensy.h')
-rw-r--r--teensy/teensy.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/teensy/teensy.h b/teensy/teensy.h
index c94986f..1f082f9 100644
--- a/teensy/teensy.h
+++ b/teensy/teensy.h
@@ -1,9 +1,9 @@
#ifndef TEENSY_H_
#define TEENSY_H_
-#include "common.h"
-#include "context.h"
-#include "dyn_arr.h"
+#include "teensy_common.h"
+#include "teensy_context.h"
+#include "teensy_list.h"
#define ty_vec2(x, y) ((struct ty_vec2){x, y})
#define ty_vec2i(x, y) ((struct ty_vec2i){x, y})
@@ -19,15 +19,15 @@
#define TY_COLOR_CYAN ty_color(0, 255, 255)
#define TY_COLOR_WHITE ty_color(255, 255, 255)
-struct ty_creation_hints {
- int win_width;
- int win_height;
- const char *win_title;
+struct ty_hints {
+ int scr_width;
+ int scr_height;
+ const char *game_title;
int ticrate;
};
struct ty_ctx {
- struct ty_creation_hints creation_hints;
+ struct ty_hints hints;
double ticrate;
double prev_tic_ts;
};
@@ -72,7 +72,7 @@ struct ty_renderer {
struct ty_image screen;
};
-void ty_init(struct ty_creation_hints creation_hints);
+void ty_init(struct ty_hints hints);
void ty_deinit(void);
// Whether or not the main loop should continue executing.