mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-19 20:19:18 +02:00
reformat: functions can be made static
This commit is contained in:
@@ -123,9 +123,9 @@ class map_panel : public ui_panel
|
||||
float zoom = 1.0f / 1000.0f;
|
||||
enum { MODE_MANUAL = 0, MODE_CAMERA, MODE_VEHICLE } mode = MODE_MANUAL;
|
||||
|
||||
float get_vehicle_rotation();
|
||||
static float get_vehicle_rotation();
|
||||
void render_map_texture(glm::mat4 transform, glm::vec2 surface_size);
|
||||
void render_labels(glm::mat4 transform, ImVec2 origin, glm::vec2 surface_size);
|
||||
static void render_labels(glm::mat4 transform, ImVec2 origin, glm::vec2 surface_size);
|
||||
|
||||
bool init_done = false;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ class vehicleparams_panel : public ui_panel
|
||||
command_relay m_relay;
|
||||
texture_handle vehicle_mini;
|
||||
|
||||
void draw_infobutton(const char *str, ImVec2 pos = ImVec2(-1.0f, -1.0f), ImVec4 color = ImVec4(1.0f, 1.0f, 0.0f, 1.0f));
|
||||
static void draw_infobutton(const char *str, ImVec2 pos = ImVec2(-1.0f, -1.0f), ImVec4 color = ImVec4(1.0f, 1.0f, 0.0f, 1.0f));
|
||||
void draw_mini(const TMoverParameters &mover);
|
||||
public:
|
||||
vehicleparams_panel(const std::string &vehicle);
|
||||
|
||||
Reference in New Issue
Block a user