Commit Graph

73 Commits

Author SHA1 Message Date
Milo Turner 5edb05d484 [sdl] open the opportunity to set color alpha in drawing 2020-03-06 13:25:35 -05:00
Milo Turner 7d2c536d82 [util] change the separator in derived loggers 2020-03-04 20:37:52 -05:00
Milo Turner c5b22a0175 [graphics, sdl] text glyphs 2020-03-04 20:32:33 -05:00
Milo Turner b221fff192 [window] more structured way of doing 'demo drawing' 2020-03-04 20:32:23 -05:00
Milo Turner 9ef6fc0b12 [*] cool new multithreaded logging infrastructure! 2020-03-04 13:17:30 -05:00
Milo Turner 60a1516215 [sdl] draw glyphs in SDL 2020-03-03 16:04:21 -05:00
Milo Turner bf8bcd7017 [draw] windows store their graphics 2020-03-03 16:03:28 -05:00
Milo Turner a53264e4fc [draw] add ax_graphics in geom/graphics.h 2020-03-03 16:03:08 -05:00
Milo Turner 7ff4794df7 [backend,sdl] backend uses pub/sub to push events to main thread 2020-02-27 10:41:04 -05:00
Milo Turner 815fc64f8d [theme] use pubsub for notifying when a theme is loaded 2020-02-25 14:55:57 -05:00
Milo Turner 8716a9c088 [async] helper macros for msgq/pubsub moved to msg.h 2020-02-25 14:54:15 -05:00
Milo Turner 3ba13abab5 [async] pub/sub interface 2020-02-25 14:46:35 -05:00
Milo Turner 1bdb46d305 [sdl] stub: handle SDL events 2020-02-25 12:26:00 -05:00
Milo Turner a31e039e09 [util] rgn_bootstrap_new 2020-02-25 12:25:26 -05:00
Milo Turner 3936c26feb [async] rename msgq.rgn to msgq.msg_rgn 2020-02-25 12:18:49 -05:00
Milo Turner 26e66d9f61 [theme] dangerous bug: init handles to NULL on theme creation 2020-02-25 11:36:43 -05:00
Milo Turner a61fe30148 [sdl] create windows in the right order 2020-02-24 23:00:32 -05:00
Milo Turner dce02a9302 [util] reverse linked list 2020-02-24 22:59:46 -05:00
Milo Turner b6f96d8275 [*] .next must be first field in a linked list struct 2020-02-24 22:44:59 -05:00
Milo Turner f76201c0d3 [sdl] gotta go fast 2020-02-24 17:56:35 -05:00
Milo Turner 690fd1ccd7 [test] hm. 2020-02-24 17:53:33 -05:00
Milo Turner 8302002cb6 [sdl] blank windows 2020-02-24 17:48:54 -05:00
Milo Turner 46a3e4552a [dev] generate etags 2020-02-22 16:30:06 -05:00
Milo Turner 6dd051e2ec [window] initial work on creating windows 2020-02-22 16:26:09 -05:00
Milo Turner 435c43da3f [async] ax__msg_name() 2020-02-22 16:20:52 -05:00
Milo Turner 7b2c1f0e07 [theme] remove ax__theme_load(), put it in ax__theme_builder_finish() 2020-02-22 15:49:37 -05:00
Milo Turner d78b6cc828 [theme] remove a needless out-param 2020-02-22 14:49:20 -05:00
Milo Turner 153c084419 [theme] callback-style waiting for a theme to load 2020-02-21 15:53:09 -05:00
Milo Turner 940d4231d5 [util] use rgn_new() function for easier management of sub-regions 2020-02-21 15:34:08 -05:00
Milo Turner e349a336af [ctxt] refactor + close the logger fd on freeing 2020-02-21 15:16:14 -05:00
Milo Turner 6b939e44ee [core] completely nuke the event api 2020-02-21 14:37:41 -05:00
Milo Turner fe4b533f72 [backend] be a little more principled in loading fonts 2020-02-21 14:32:56 -05:00
Milo Turner 09a256ed90 [theme] refactor theme builder a bit 2020-02-21 14:14:05 -05:00
Milo Turner c3d7804279 [backend,theme] load fonts and store font handles in theme object 2020-02-20 13:17:47 -05:00
Milo Turner 1dd6d858c2 [async] rename msgq_msg => msgq_msg_list 2020-02-20 13:03:51 -05:00
Milo Turner 7df0ee7527 [core] backend sends an event when it finishes loading a theme 2020-02-20 12:28:15 -05:00
Milo Turner 12fab7029a [core] stub for events api 2020-02-20 12:05:51 -05:00
Milo Turner 4b069080f9 [async] add "theme loaded" msg 2020-02-20 12:05:34 -05:00
Milo Turner 4d0d2507ca [sdl] remove ping printfs 2020-02-20 12:05:24 -05:00
Milo Turner 385069e0a3 [async] touchups 2020-02-19 21:10:39 -05:00
Milo Turner fbe01e351b [async] shenanigans to run the backend in another thread 2020-02-19 20:55:30 -05:00
Milo Turner bb8eda00e4 [async] use pthread library in 'msgq' 2020-02-19 20:15:56 -05:00
Milo Turner 0d68825b70 [sdl] ping every second 2020-02-19 19:56:02 -05:00
Milo Turner e09947b953 [test] catch ^C correctly and clean up 2020-02-19 19:55:49 -05:00
Milo Turner 47c0560b13 [async] message queue abstractions 2020-02-19 19:48:27 -05:00
Milo Turner d61f9cc537 [backend] tell the backend to load fonts 2020-02-19 13:12:00 -05:00
Milo Turner 0a07bac2e7 [util] fix msgq 2020-02-19 13:11:53 -05:00
Milo Turner 932e7fc708 [backend] design a little different 2020-02-19 12:15:46 -05:00
Milo Turner 174e57e51d [backend] message queue 2020-02-18 16:53:31 -05:00
Milo Turner ea96f494ca [sdl] sdl backend stub (runs SDL_Init and friends) 2020-02-18 16:19:43 -05:00