Commit Graph

36 Commits

Author SHA1 Message Date
9329d3c2be CMakeLists.txt: use visibility=hidden by default, so that unneeded libtownengine.so symbols are not leaked 2024-10-13 19:03:29 +03:00
1a7322dccf twn_util.h: separate internal things away, remove indirect includes in places 2024-10-12 21:16:25 +03:00
e70366f82f rework to context: now there's engine and user code copies, renaming of fields, most things that shouldn't be there are hidden 2024-10-12 20:24:47 +03:00
667b599c19 remove /include/twn_config.h, move defauls to relevant headers 2024-10-11 20:21:02 +03:00
0ede612bec twn_input: singleton rework, twn_control.h and fixes 2024-10-08 10:12:47 +03:00
5c91423fbb clang-format on /apps/demos/bunnymark files 2024-10-08 01:21:31 +03:00
b12faa6a44 remove legacy app specification over cmake 2024-10-07 19:08:25 +03:00
5aabab468d fix includes 2024-10-07 18:37:44 +03:00
33523c7980 remove usage of twn_vec.h in public headers 2024-10-07 18:05:53 +03:00
ade1af12ca twn_rendering -> twn_draw 2024-10-07 17:53:09 +03:00
e2f5d44959 move typedefs to twn_types.h, specify that twn_vec.h is C user only, remove Vec2sh 2024-10-07 15:56:00 +03:00
ae8cc5f50b twn_audio: rework interface 2024-10-07 15:21:44 +03:00
cfdc1f5f28 twn_rendering.c: rename font_path parameter to font 2024-10-07 12:32:06 +03:00
60a9307ce3 twn_util: separate internal c-only features from public header 2024-10-07 10:44:18 +03:00
ca6c6a711c remove unused SDL2/SDL.h and physfs.h from twn_util.h, explicit usage of SDL in apps, move to Scancode enum in apps 2024-10-07 00:00:36 +03:00
ba488801b3 twn_rendering.h: remove redundant SDL2/SDL.h 2024-10-06 23:51:14 +03:00
3e972b2dad twn_input: add twn_scancode.h as port of SDL_scancode.h, remove SDL2/SDL.h header usage sa for plans on having clean public headers 2024-10-06 23:49:05 +03:00
bd99540280 add WIP lua binding app 2024-10-05 18:17:22 -03:00
dbbf6e25f0 add the long awaited push_9slice 2024-10-02 14:18:07 -03:00
0dc3cf4160 twn_rendering: have triangle uvs represented by floating vectors 2024-10-01 20:52:32 +03:00
ad0438849e twn_fog.c: fog added! 2024-10-01 16:10:36 +03:00
a0ea657eb9 twn_audio: settle down on float32 2-channel sampling only, format enums to style used elsewhere 2024-10-01 12:59:01 +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
5d6a3a5aec remove/replace unused includes 2024-09-26 21:38:24 +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
34a081fccd rename get_text_width() to text_get_width() 2024-09-23 15:06:58 -03:00
73bf92e706 typedef & PascalCase for ALL structs and enums 2024-09-23 14:43:16 -03:00
66678a27cf twn_textures.c: add debug hints about unportable texture dimensions 2024-09-23 09:35:46 +03:00
5caf736370 twn_rendering: m_sprite texture_origin changed for texture_region, stretched subregion work now 2024-09-21 20:07:05 +03:00
e33a97294c twn_util.h: clarify behavior of null result pointer 2024-09-20 13:48:29 -03:00
074b290b3f that's not what they're called 2024-09-20 13:41:55 -03:00
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
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