Commit Graph

72 Commits

Author SHA1 Message Date
veclavtalica
74d7190c62 ilimination of system code, removal of x-watcher and replacement of it by dmon, fixes in audio code, dynamic asset reload 2025-01-30 04:30:20 +03:00
veclavtalica
8de4a1f09b /apps/twnlua: optimize default boolean and convertrer pops 2025-01-28 23:48:49 +03:00
veclavtalica
ac93d114c9 add log over primitives to twn_api.h 2025-01-28 07:14:55 +03:00
veclavtalica
f625dde8d1 some TODOs to twn_draw.h 2025-01-27 04:16:00 +03:00
veclavtalica
6a87119c70 add zoom option to camera to work around the orthographic camera 2025-01-27 03:25:14 +03:00
veclavtalica
791ab628ca orthographic projection for fov=0, rework of order and defaults for 3d camera api 2025-01-27 02:42:36 +03:00
veclavtalica
fad46137a0 set ctx.frame_duration 2025-01-26 09:09:21 +03:00
veclavtalica
34a3de73c6 twn_utils.c: make profiling public 2025-01-25 00:53:44 +03:00
veclavtalica
e281ba593c twn_vec.h: add vec2_length(), remove legacy code 2025-01-24 04:28:09 +03:00
veclavtalica
045d2764fa twn_util.c: add logging over base types 2025-01-23 22:13:01 +03:00
veclavtalica
53917b05b7 twn_draw.c: draw_box() 2025-01-23 21:53:15 +03:00
veclavtalica
2df5616410 add line drawing 2025-01-23 04:29:59 +03:00
veclavtalica
3f9906a918 remove fog start and fog end parameters 2025-01-20 19:30:17 +03:00
veclavtalica
9d0a2cab81 expose audio to twnlua 2025-01-15 04:15:08 +03:00
veclavtalica
5059802d09 big rendering overhaul (cleaning and api abstraction) 2025-01-14 23:20:54 +03:00
veclavtalica
2351d4114c twn_draw.c: add draw_quad() 2025-01-14 02:53:18 +03:00
veclavtalica
4ed3764c1d twn_input.c: remove input_mouse_captured(), add ctx.mouse_capture 2025-01-14 00:28:21 +03:00
veclavtalica
83e2dc5468 make vec4 and matrix types internal 2025-01-10 02:40:52 +03:00
veclavtalica
951d9c76c8 use floats for ctx.frame_number and ctx.random_seed 2025-01-10 02:20:21 +03:00
veclavtalica
f3848d2d52 progress on twnlua bindgen 2025-01-09 21:47:08 +03:00
veclavtalica
8c401eda75 api changes and progress on filling in twn_api.json 2025-01-07 14:14:21 +03:00
veclavtalica
3bfa86066e billboards! 2025-01-05 19:46:05 +03:00
veclavtalica
4f2b8ccd01 separate the rest of general drawing code 2025-01-03 21:59:00 +03:00
veclavtalica
4277852fc5 /apps/demos/scenery: add walking 2025-01-02 13:29:28 +03:00
veclavtalica
9121da0675 yet another api rework, removal of integer types in public api, optionals at the end, some cleaning 2024-10-29 12:25:24 +03:00
veclavtalica
6464d14b3e twn_input.h: remove unbinding 2024-10-28 13:04:49 +03:00
veclavtalica
eff9fe6918 twn_util.h: make return structs comply to type naming 2024-10-28 12:39:42 +03:00
veclavtalica
d11143ac86 twn_draw.h: new camera api 2024-10-28 12:34:48 +03:00
veclavtalica
9da26638c8 rework input to be in line with rendering semantics 2024-10-22 20:32:17 +03:00
veclavtalica
a22bcfd97e rework timers, update overlap/intersect and other procedures, some other things i dont remember 2024-10-22 14:45:30 +03:00
veclavtalica
b390e9db23 audio_set() -> audio_set_parameter(), with string based convention 2024-10-22 13:52:24 +03:00
veclavtalica
48f63fc9df deferred skybox, fixes to use of ARB_depth_clamp extension usage, have TextureKey explicitly in QuadBatch 2024-10-22 09:30:14 +03:00
7f56ed8421 remove alignas for twn_types.h, it looks to be just as performant and even more in cases i looked at 2024-10-16 02:32:04 +03:00
d34516c4ee Merge branch 'main' of https://git.poto.cafe/wanp/townengine 2024-10-14 11:48:46 +03:00
b295c5920c rendering: use sprite batching techniques for rect primitives, unite their render path 2024-10-14 11:46:07 +03:00
f7f27119e1 use static, fixed arrays for circle geometry data instead of allocating for each one 2024-10-13 22:32:59 -03:00
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