update overlay to have ps controls too
[carveJwlIkooP6JGAAIwe30JlM.git] / control_overlay.h
1 #pragma once
2
3 #ifdef C0_STOPGAP /* -> control_overlay.h.c0 */
4
5 c0_start( "control_overlay.h.c0" );
6 mdl_context ctx;
7 mdl_open( &ctx, "models_src/rs_overlay.mdl", NULL );
8 mdl_load_metadata_block( &ctx, NULL );
9 mdl_close( &ctx );
10
11 for( u32 i=0; i<mdl_arrcount( &ctx.meshs ); i ++ )
12 {
13 mdl_mesh *mesh = mdl_arritm( &ctx.meshs, i );
14 c0_echof( " %s = %u,\n",
15 mdl_pstr( &ctx, mesh->pstr_name ), mesh->submesh_start );
16 }
17 c0_end();
18
19 #else
20
21 enum control_overlay_mesh
22 {
23 #include "control_overlay.h.c0"
24 };
25
26 struct control_overlay
27 {
28 mdl_context mdl;
29 GLuint tex;
30 i32 enabled;
31 }
32 extern control_overlay;
33
34 void control_overlay_render(void);
35 void control_overlay_init(void);
36
37 #endif