strip out update/render/repaint window cruft; promote layer per-tick APIs to base layer

This commit is contained in:
Ryan Fleury
2024-09-01 09:00:58 -07:00
parent 98840c73d8
commit 6ead03ac17
10 changed files with 63 additions and 72 deletions
+20
View File
@@ -102,3 +102,23 @@ supplement_thread_base_entry_point(void (*entry_point)(void *params), void *para
entry_point(params);
tctx_release();
}
internal B32
update(void)
{
ProfTick(0);
#if defined(TEXT_CACHE_H)
txt_user_clock_tick();
#endif
#if defined(DASM_CACHE_H)
dasm_user_clock_tick();
#endif
#if defined(GEO_CACHE_H)
geo_user_clock_tick();
#endif
#if defined(TEXTURE_CACHE_H)
tex_user_clock_tick();
#endif
B32 result = frame();
return result;
}
+1
View File
@@ -6,5 +6,6 @@
internal void main_thread_base_entry_point(void (*entry_point)(CmdLine *cmdline), char **arguments, U64 arguments_count);
internal void supplement_thread_base_entry_point(void (*entry_point)(void *params), void *params);
internal B32 update(void);
#endif // BASE_ENTRY_POINT_H