fix regression with gate flipping
[carveJwlIkooP6JGAAIwe30JlM.git] / world_sfd.h
1 /*
2 * Copyright (C) 2021-2024 Mt.ZERO Software, Harry Godden - All Rights Reserved
3 */
4 #pragma once
5 #include "world.h"
6 #include "world_routes.h"
7 #include "scene.h"
8
9 struct world_sfd{
10 GLuint tex_scoretex;
11
12 glmesh mesh_base, mesh_display;
13 mdl_submesh sm_base;
14
15 u32 active_route_board;
16 scene_context scene;
17
18 u32 view_weekly;
19
20 u32 w, h;
21 float *buffer;
22 }
23 extern world_sfd;
24 void world_sfd_init(void);
25
26 enum world_sfd_align {
27 k_world_sfd_left,
28 k_world_sfd_right,
29 k_world_sfd_center
30 };
31
32 void sfd_encode( v2i co, const char *str, enum world_sfd_align align );
33 void world_sfd_update( world_instance *world, v3f pos );
34 void sfd_render( world_instance *world, vg_camera *cam, m4x3f transform );
35 void world_sfd_compile_scores( struct leaderboard_cache *leaderboard,
36 const char *title );
37 void world_sfd_compile_active_scores(void);