Commit Graph

59 Commits

Author SHA1 Message Date
milo 74f5d9a3aa wip: real ECS scene topology 2024-02-05 15:53:11 -05:00
milo 3818e4f550 rework sprites and labels so the nodes own the instance buffer 2024-02-05 15:19:41 -05:00
milo 94acf18470 specify more dependencies 2024-02-05 12:46:57 -05:00
tali 5411994fc2 batched rendering for sprites and text 2024-01-22 15:08:42 -05:00
tali 0580529940 change renderer API to enable batched sprite rendering 2024-01-22 14:23:25 -05:00
tali 0d1fd47715 Adam.Mat2A code cleanup 2024-01-22 13:18:59 -05:00
tali 9964260e0d refactor matrix muls when computing transform 2024-01-22 12:58:48 -05:00
tali 65dd5eb0b8 change scene sexp syntax for sprites 2024-01-20 15:36:43 -05:00
tali d7209eebec add label nodes to scene 2024-01-20 14:08:13 -05:00
tali 466f84eb8e refactor load_image happens in Asset 2024-01-20 13:42:34 -05:00
tali 09a5947a27 directly mmap files instead of read loop 2024-01-20 13:36:29 -05:00
tali 4c2d4be9fb (m)sdf text rendering 2024-01-20 12:47:42 -05:00
tali 7fffdd4798 fix "not found" errors for textures by handling in absolute_path 2024-01-20 12:23:41 -05:00
tali 93ed4c82fa remove unused support for index buffers in Renderer 2024-01-20 12:21:29 -05:00
tali a898d1c38a add premultiply_alpha bool to load_texture 2024-01-20 12:20:39 -05:00
tali d0f4f6a6c4 add loading font from glyph map 2024-01-20 11:39:03 -05:00
tali 6e0ab0d9a3 wip generating fonts 2024-01-20 02:41:55 -05:00
tali f4fd444e8c move to scripts/ dir 2024-01-20 01:24:14 -05:00
tali cf4a6ad481 quote sexp strings 2024-01-19 20:00:36 -05:00
tali c59c81a4ea compose tetris HUD scene 2024-01-19 19:58:34 -05:00
tali 8b8ae416be fix sprite rect width 2024-01-19 19:47:08 -05:00
tali b83a670e4d fix gen_sprites default dpi -_- 2024-01-19 19:45:55 -05:00
tali 3fd155e4af N2.Scene contains sprites rather than colored rectangles 2024-01-19 19:26:15 -05:00
tali 61d4e590b2 remove Texture public interface from S2 2024-01-19 19:10:48 -05:00
tali 5f31d1eb7f remove label from argument Renderer.draw_rect ~bb 2024-01-19 19:04:08 -05:00
tali 9162e9f3b4 remove redundant "window initialized" message 2024-01-19 19:01:31 -05:00
tali 231de4b245 add sprite rendering 2024-01-19 19:01:20 -05:00
tali c1f8a4faec add sprite type and load spritemap file 2024-01-19 18:39:14 -05:00
tali 2d367e6ded fixup gen_sprites 2024-01-19 18:39:10 -05:00
tali eded1071c4 fix accidentally shadowing some log namespaces 2024-01-19 18:07:49 -05:00
tali a6ee085b1a spritemap generation utils 2024-01-19 18:04:37 -05:00
tali 12ffc31b3e fix Asset log namespace 2024-01-19 16:58:08 -05:00
tali 99d136c1e3 refactor texture munching to use Array3 and reshape 2024-01-19 16:56:04 -05:00
tali 2855edbb81 add basic texture rendering (no clips, no instances) 2024-01-19 16:22:39 -05:00
tali 635d742363 add loading textures from sdl surfaces 2024-01-19 16:03:50 -05:00
tali 104d941ab7 add s2.mli 2024-01-19 15:24:04 -05:00
tali 95758ed7c6 s2 event loop passes time variable 2024-01-19 15:23:05 -05:00
tali d6882feb15 refactor string->sexp happens in S2 2024-01-19 15:14:22 -05:00
tali 5ce8d30f89 add N2.mli 2024-01-19 14:20:57 -05:00
tali a691757921 Revert "rename ~bb argument(s) to ~rect"
This reverts commit 827c5eb0a6.
2024-01-19 14:20:54 -05:00
tali 3714ecb88d N2.Scene.get fail message 2024-01-19 14:14:49 -05:00
tali d5b7821ec7 dont show window before event loop starts 2024-01-19 14:13:29 -05:00
tali a1a460e2e3 interpret scene description from sexp file 2024-01-19 14:08:48 -05:00
tali 781b822597 fix color pretty printer to show alpha at the right time 2024-01-19 14:02:06 -05:00
tali 827c5eb0a6 rename ~bb argument(s) to ~rect 2024-01-19 14:02:00 -05:00
tali 4983226b4a error printing fixup 2024-01-19 13:22:28 -05:00
tali 1df5e2c6d8 add sexplib 2024-01-19 13:21:49 -05:00
tali 455b04163a ECS WIP: sprite graph 2024-01-19 13:00:43 -05:00
tali 91322da5b1 ECS WIP: transform tree 2024-01-19 12:49:18 -05:00
tali ceafd98d63 move everything to s2 library 2024-01-15 17:09:24 -05:00