stagedraw: add stage_draw_is_initialized() API
This commit is contained in:
parent
5a3bd5ec79
commit
aff16937e8
2 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue