allow other channel for non-dsp sounds (2D oneshots)
[vg.git] / vg_loader.h
1
2 /*
3 * Copyright 2021-2024 (C) Mount0 Software, Harry Godden - All Rights Reserved
4 * -----------------------------------------------------------------------------
5 *
6 * Splash / load screen
7 *
8 * -----------------------------------------------------------------------------
9 */
10
11 #pragma once
12
13 struct vg_loader
14 {
15 /* Shutdown steps */
16 struct loader_free_step{
17 void (*fn_free)(void);
18 }
19 step_buffer[16];
20 u32 step_count, step_action;
21
22 GLuint vao, vbo;
23 }
24 extern vg_loader;
25
26 void vg_loader_start( void(*pfn)(void *data), void *data );
27 void _vg_loader_step( void( *fn_load )(void), void( *fn_free )(void),
28 const char *alias );
29 int vg_loader_availible(void);
30 void vg_loader_render(void);
31 void vg_loader_render_ring( f32 opacity );
32 static void vg_loader_free(void);
33 void vg_loader_init(void);
34
35 #define vg_loader_step( FN, FN_FREE )\
36 _vg_loader_step( FN, FN_FREE, #FN )