techkaczynski.dev / code

summaryrefslogtreecommitdiff
path: root/app.h
diff options
context:
space:
mode:
authortech kaczynski <tk@techkaczynski.dev>2026-11-04 19:06:21 +1000
committertech kaczynski <tk@techkaczynski.dev>2026-11-04 19:06:21 +1000
commit064943d1541e2285cc39b6d737093569b1787f7d (patch)
tree5892e9d8bba08e516a4b065f7a717f46d9357d9f /app.h
parenta318ed02db01b0b9c754ebfeb02c51f3ffa15fd0 (diff)
refactored rendering into render texture.main
Diffstat (limited to 'app.h')
-rw-r--r--app.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/app.h b/app.h
index 1f0ff23..a635923 100644
--- a/app.h
+++ b/app.h
@@ -14,7 +14,9 @@ typedef enum {
} AppFlag;
typedef struct {
- int w, h;
+ RenderTexture scr_tex;
+ Rect scr_rec;
+ int w, h, rw, rh;
f32 frame_time_ms;
AppMode mode;
AppFlag flags;
@@ -23,6 +25,8 @@ typedef struct {
extern App app;
+Ray app_screen_ray(Vec2 position, Camera camera);
+Vec2 app_world_to_screen(Vec3 position, Camera camera);
void app_notify(cstr title, cstr msg);
#endif