stagedraw: add stage_draw_is_initialized() API

This commit is contained in:
Andrei Alexeyev 2024-04-29 00:42:33 +02:00
parent 5a3bd5ec79
commit aff16937e8
No known key found for this signature in database
GPG key ID: 72D26128040B9690
2 changed files with 5 additions and 0 deletions

View file

@ -82,6 +82,10 @@ static struct {
}
};
bool stage_draw_is_initialized(void) {
return stagedraw.mfb_group;
}
static double fb_scale(void) {
float vp_width, vp_height;
video_get_viewport_size(&vp_width, &vp_height);

View file

@ -30,6 +30,7 @@ typedef COEVENTS_ARRAY(
void stage_draw_preload(ResourceGroup *rg);
void stage_draw_init(void);
void stage_draw_shutdown(void);
bool stage_draw_is_initialized(void);
StageDrawEvents *stage_get_draw_events(void);