Commit Graph

27 Commits

Author SHA1 Message Date
f7a718003e send vertex data packed 2024-10-14 20:19:18 +03:00
f087bf1f7f fix depth clearing, ghostly modes not using depth layers, ortho with 0..1 2024-10-14 16:00:27 +03:00
19bf88d44e finally properly implemented depth optimization for 2d 2024-10-14 15:31:56 +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
f96d521af2 CMakeLists.txt: don't precompile stb_ds.h, precompile SDL.h 2024-10-13 18:14:36 +03:00
667b599c19 remove /include/twn_config.h, move defauls to relevant headers 2024-10-11 20:21:02 +03:00
aef3f6444e revert accidental commits, assert for zero-sized build_vertex_buffer(), explain the TODO on no-clear on skybox present 2024-10-08 08:30:26 +03:00
5c91423fbb clang-format on /apps/demos/bunnymark files 2024-10-08 01:21:31 +03:00
1f8a225f89 twn_gl_15_rendering.c: only disable color array for sprite batch if it was used 2024-10-08 00:51:46 +03:00
f1e2fa090b twn_gl_15_rendering.c: re-enable depth write after text function 2024-10-08 00:42:15 +03:00
ade1af12ca twn_rendering -> twn_draw 2024-10-07 17:53:09 +03:00
b75ff20014 twn_gl_15_rendering.c: fix endlessly generating display lists 2024-10-01 18:38:54 +03:00
ad0438849e twn_fog.c: fog added! 2024-10-01 16:10:36 +03:00
9efcd79ba6 twn_gl_15_rendering.c: don't assume seethrough triangle textures, infer actual usage 2024-10-01 15:23:06 +03:00
d163e0f7ae twn_gl_15_rendering.c: better caching of pipelines 2024-10-01 15:18:05 +03:00
2ebb2ba53b twn_gl_15_rendering.c: disable depth writes for skybox 2024-10-01 15:17:51 +03:00
aa5ff1edf1 twn_gl_15_rendering.c: use display lists to cache common series of calls 2024-10-01 14:58:00 +03:00
9ab7d1edff twn_gl_15_rendering.c: fix memory leak in finally_render_skybox() 2024-10-01 13:22:20 +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
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
73bf92e706 typedef & PascalCase for ALL structs and enums 2024-09-23 14:43:16 -03:00
691d781827 text rendering over vertex arrays, rework fully done, finally 2024-09-18 19:01:43 +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