Commit Graph

36 Commits

Author SHA1 Message Date
veclavtalica
f81c583319 push as is, half baked broken twn_models.c 2025-02-14 19:51:34 +03:00
veclavtalica
1818532ec9 reuse draw_camera() in axial variant 2025-02-10 14:42:30 +03:00
veclavtalica
7040d6f218 wip model loading + workers 2025-02-07 10:19:36 +03:00
veclavtalica
d9df3f9b04 twn_draw.c: draw_camera_2d()! 2025-02-05 00:54:38 +03:00
veclavtalica
ccfdfd8a35 half pi. 2025-02-02 05:39:47 +03:00
veclavtalica
7284bb726a make yaw = 0 result in (0, 0, 1) target vector 2025-02-02 05:32:18 +03:00
veclavtalica
2120f6876c camera reset and default state 2025-02-02 01:41:02 +03:00
veclavtalica
7074e7499a ugh? 2025-01-30 05:10:38 +03:00
veclavtalica
7c33107585 game.background_color option in twn.toml 2025-01-27 05:05:43 +03:00
veclavtalica
d84e5f8610 normalize camera direction 2025-01-27 03:46:29 +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
c97d9b2568 twn_draw.c: fix upper limit for camera fov warn 2025-01-24 16:28:06 +03:00
veclavtalica
a20be2c523 twn_draw.c: add warning for erroneous fov parameters 2025-01-24 04:27:45 +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
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
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
472a0657f3 twn_draw.c: remove gl headers 2025-01-03 21:10:15 +03:00
veclavtalica
0f368e2700 move render_circle to twn_draw.c 2025-01-03 21:08:54 +03:00
veclavtalica
33471b4c46 generalization of deferred commands and any_gl rendering where appropriate 2025-01-03 21:01:26 +03:00
veclavtalica
dc2535358e make input coordinates respect the viewport 2024-12-24 10:24:50 +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
d11143ac86 twn_draw.h: new camera api 2024-10-28 12:34:48 +03:00
veclavtalica
b390e9db23 audio_set() -> audio_set_parameter(), with string based convention 2024-10-22 13:52:24 +03:00
139394c6de partial implementation of double buffered render 2024-10-15 15:29:45 +03:00
19bf88d44e finally properly implemented depth optimization for 2d 2024-10-14 15:31:56 +03:00
3535a185df don't use depth range hack in rect case 2024-10-14 12:16:23 +03:00
b295c5920c rendering: use sprite batching techniques for rect primitives, unite their render path 2024-10-14 11:46:07 +03:00
da98c0941b effort to have no warnings once again 2024-10-13 21:32:31 +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
fd642171a4 twn_draw.c: clear after swap 2024-10-08 00:55:40 +03:00
b0e6dd78b2 fix ratio 2024-10-07 20:29:03 +03:00
ade1af12ca twn_rendering -> twn_draw 2024-10-07 17:53:09 +03:00