Commit Graph

33 Commits

Author SHA1 Message Date
veclavtalica
4b2a22bf3c twn_filewatch.c: file and directory change api, initial support for texture reload 2025-01-29 07:21:09 +03:00
veclavtalica
732b61e207 twn_textures.c: remove hacky .rodata texture lookup method, it turns out to be not anyhow faster than the simplest solution. also fix path=NULL case 2025-01-29 00:56:05 +03:00
veclavtalica
20394eed6c disable elf texture lookup hack 2025-01-26 23:26:48 +03:00
veclavtalica
4659cf2aef profile atlas recreation 2025-01-15 06:04:02 +03:00
veclavtalica
f0dfd5627a more startup profiling, removal of irrelevant calls and zeroing in textures_cache_init() 2025-01-15 05:39:18 +03:00
veclavtalica
82d4f21a4b twn_textures.c: minor optimization 2025-01-15 00:11:47 +03:00
veclavtalica
3990f78a74 twn_textures.c: make missing texture single and reused 2025-01-15 00:10:30 +03:00
veclavtalica
f0ad9b9a8a twn_textures.c: fix repeated bind to work over varying channel count 2025-01-14 23:47:59 +03:00
veclavtalica
5bce3e5238 twn_textures.c: remove unused amask 2025-01-13 23:56:22 +03:00
veclavtalica
87ae1a7312 missing textures: fix double free 2025-01-13 18:09:06 +03:00
veclavtalica
5f6c8dd8e6 missing texture when loading fails 2025-01-13 17:35:50 +03:00
veclavtalica
e8b02570a2 slot based allocator for lua, usage of lua_createtable 2025-01-12 02:44:41 +03:00
da98c0941b effort to have no warnings once again 2024-10-13 21:32:31 +03:00
ed93072371 twn_amalgam.c: a way for single unit compilation, controlled with -DTWN_USE_AMALGAM in cmake 2024-10-13 19:04:23 +03:00
667b599c19 remove /include/twn_config.h, move defauls to relevant headers 2024-10-11 20:21:02 +03:00
9b5c043d85 fix warnings 2024-10-08 10:30:11 +03:00
60a9307ce3 twn_util: separate internal c-only features from public header 2024-10-07 10:44:18 +03:00
91ea5356fc fix variout memory leaks 2024-10-01 13:34:58 +03:00
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
f4b52b5450 make textures_dump_atlases work again and expose it as a utility function 2024-09-26 21:32:08 -03:00
c0dcdf8c0a twn_skybox.c 2024-09-26 21:02:56 +03:00
0fe1023667 use SDL stdlib where possible 2024-09-25 19:42:34 -03:00
65425f5b2e twn_textures.c: stream-based texture load 2024-09-25 18:01:50 +03:00
1430a13832 twn_textures.c: use SDL memory allocation, use SDL_LoadFileRW in texture file loading 2024-09-25 17:41:15 +03:00
73bf92e706 typedef & PascalCase for ALL structs and enums 2024-09-23 14:43:16 -03:00
e093a6d492 twn_textures.c: handle RGB image files 2024-09-23 14:35:46 +03:00
c8469e9416 twn_textures.c: actually fix srcrect updating lol 2024-09-23 14:07:02 +03:00
ce582d8a80 twn_textures.c: support for .so rodata inference 2024-09-23 12:50:44 +03:00
0ef8a6233f twn_textures.c: fix srcrect setting on atlas rebuild 2024-09-23 11:51:18 +03:00
535d5d8d36 twn_textures.c: little pieces 2024-09-23 09:50:48 +03:00
66678a27cf twn_textures.c: add debug hints about unportable texture dimensions 2024-09-23 09:35:46 +03:00
16c96010dc finally compiling and running, text still needs rework 2024-09-16 16:17:00 +03:00
551d60ef85 partially done work on total source tree rework, separation of engine context and game context, generalization of renderer for different backends as well as web platform target 2024-09-16 09:07:01 +03:00