Commit Graph
26 Commits
Author SHA1 Message Date
wanp f7f27119e1 use static, fixed arrays for circle geometry data instead of allocating for each one 2024-10-13 22:32:59 -03:00
wanp ffab6a3924 cache font _files_ as well to avoid duplicate buffers 2024-10-13 21:34:05 -03:00
wanp 017ce4f1d2 /apps/lua: just free game_buf right away after it's used without keeping it around 2024-10-07 00:37:49 -03:00
wanp 6844049279 register functions before initial lua eval 2024-10-05 18:40:39 -03:00
wanp bd99540280 add WIP lua binding app 2024-10-05 18:17:22 -03:00
wanp dbbf6e25f0 add the long awaited push_9slice 2024-10-02 14:18:07 -03:00
wanpandveclavtalica 57fe5e8946 implement game configuration file
this integrates https://github.com/cktan/tomlc99 into the repo as a dependency
2024-10-01 12:48:42 +03:00
wanp 078e68387b replace per-tick allocations in push_text with an arena/bump allocator 2024-09-27 15:02:24 -03:00
wanp f4b52b5450 make textures_dump_atlases work again and expose it as a utility function 2024-09-26 21:32:08 -03:00
wanp 0e68ecbc88 twn_loop.c: add --debug and --release overrides, fix incorrect argv iteration 2024-09-26 20:48:42 -03:00
wanp 64d1c20b4a twn_util.c: make alloc failure death message clearer 2024-09-26 19:37:46 -03:00
wanp 0fe1023667 use SDL stdlib where possible 2024-09-25 19:42:34 -03:00
wanp ccad21ab90 conanfile.py: update after a million years 2024-09-25 15:33:46 -03:00
wanp 34a081fccd rename get_text_width() to text_get_width() 2024-09-23 15:06:58 -03:00
wanp 73bf92e706 typedef & PascalCase for ALL structs and enums 2024-09-23 14:43:16 -03:00
wanp ddf0ef6a0c twn_util.c: use more appropriate SDL functions for intersect_(f)rect 2024-09-20 22:57:55 -03:00
wanp e33a97294c twn_util.h: clarify behavior of null result pointer 2024-09-20 13:48:29 -03:00
wanp 074b290b3f that's not what they're called 2024-09-20 13:41:55 -03:00
wanp 999cb78358 rename intersect_(f)rect to overlap_(f)rect and add simplified functions with the old names 2024-09-20 13:39:37 -03:00
wanp 5cc36ab46c twn_input.c: fix scancode unbinding (ie make it actually work lol) 2024-09-20 12:39:37 -03:00
wanp db11bb754e more IDE whatever thing 2024-09-20 12:35:44 -03:00
wanp 9892bf71dc add the text primitive, finally 2024-08-22 23:41:52 -03:00
wanp 7f1efce310 get the flycam going already 2024-07-30 18:05:28 -03:00
wanp b7edb8a02e .gitignore: ignore clangd .cache dir 2024-07-15 23:34:59 -03:00
wanp bdf2a54107 replace categorized, sorted render queues with a single ordered 2d queue 2024-07-15 23:31:54 -03:00
wanp 17d7bcd330 remove the broken variable timestep 2024-07-08 17:16:24 -03:00