Commit Graph

162 Commits

Author SHA1 Message Date
veclavtalica
a03e1d885d twn_camera: fix aspect of ortho projection 2025-03-07 11:07:05 +03:00
veclavtalica
5be4ed4645 twn_lines: bail on empty batch 2025-03-07 07:05:20 +03:00
veclavtalica
35bb26705a twn_text: use full ascii range 2025-03-07 05:16:46 +03:00
veclavtalica
13bc71a28d twn_text: embed default font 2025-03-07 03:35:35 +03:00
veclavtalica
307d5552f6 twn_lines.c: 3d case 2025-03-01 03:46:11 +03:00
veclavtalica
5911cbd980 take care of warnings 2025-03-01 01:06:32 +03:00
veclavtalica
e47b761a2c twn_lines.c: introduction with proper impl 2025-02-28 23:50:12 +03:00
veclavtalica
09eac707c3 draw: use GLint in circle element buffer 2025-02-28 17:27:01 +03:00
veclavtalica
6812c7c13d add trees to scenery, disable mipmapping by default, increase index buffer size again 2025-02-26 16:17:44 +03:00
veclavtalica
8c0f43ec34 draw: draw_distance for 3d spaces, proper positioning of skybox according to it, scenery demo on circle rasters 2025-02-26 15:53:59 +03:00
veclavtalica
23fbd45564 increase quad element buffer size 2025-02-26 13:29:28 +03:00
veclavtalica
a36459397e draw: increase far Z, separate path for space quads, fix billboard batching 2025-02-26 13:27:09 +03:00
veclavtalica
d66eda1894 add texture border to atlas residents, actually make use of mipmapping 2025-02-23 17:14:05 +03:00
veclavtalica
05f85062e8 fix command lists 2025-02-22 20:50:38 +03:00
veclavtalica
62866d33ae add notes explaining emscripten considerations 2025-02-22 16:19:22 +03:00
veclavtalica
814269ab0c textures working on web, separation of vertex and index buffers (actually matters) 2025-02-21 23:34:01 +03:00
veclavtalica
d76ea06470 poll workers for non-threaded support, emscripten main loop, remove twn_model.c 2025-02-21 21:16:15 +03:00
veclavtalica
dd4fc45be3 attempt to build web version out of emscripten legacy gl wrapper 2025-02-21 18:07:04 +03:00
veclavtalica
b67bc92857 remove optional by pointer texture_region parameters 2025-02-20 16:19:03 +03:00
veclavtalica
f044a75ffe reorganization of twn_util.h, reletion of some seldom used procedures 2025-02-20 13:48:44 +03:00
veclavtalica
6bd3afe9b2 move and combine option macro headers from public interface 2025-02-20 13:01:02 +03:00
veclavtalica
a1f4599efd twn_text.c: dont segfault on font not found 2025-02-17 12:32:01 +03:00
veclavtalica
5a83381ae1 twn_draw: texture_region option for draw_billboard() 2025-02-15 22:42:14 +03:00
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
c81f95e571 remove redundant for us opengl loading code from glad.c 2025-02-10 14:05:19 +03:00
veclavtalica
5ba11dc584 remove texture upload profiling 2025-02-09 08:30:46 +03:00
veclavtalica
d6aaef3f68 assume constant dimensions for created textures, shaves a lot of time in uploading 2025-02-09 08:07:58 +03:00
veclavtalica
5a7d7433d1 wip multithreaded texture load 2025-02-09 07:35:27 +03:00
veclavtalica
8c248cb3fb twn_models.c: ignore deinit if it's not needed 2025-02-08 00:19:22 +03:00
veclavtalica
559ff9fedc proper state, handling of fans 2025-02-07 13:42:01 +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
2f629433aa catch null font, report it as unimplemented 2025-02-02 04:12:56 +03:00
veclavtalica
0014458dbb actuall no spam. i swear. 2025-02-02 03:13:58 +03:00
veclavtalica
9112630330 don't report useless opengl messages 2025-02-02 02:17:37 +03:00
veclavtalica
2120f6876c camera reset and default state 2025-02-02 01:41:02 +03:00
veclavtalica
bd89c4b938 fix mixing up of SDL and libc allocators, proper flushing of quad build buffers 2025-01-30 21:57:20 +03:00
veclavtalica
7074e7499a ugh? 2025-01-30 05:10:38 +03:00
veclavtalica
fad11041bc fix uvs in billboards 2025-01-27 05:08:45 +03:00
veclavtalica
7c33107585 game.background_color option in twn.toml 2025-01-27 05:05:43 +03:00
veclavtalica
166ae43981 make face culling optional 2025-01-27 04:15:46 +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