2024-02-06 17:57:59 +11:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../mesh/glmesh.hpp"
|
|
|
|
|
|
|
|
namespace sim::graphics::monitor
|
|
|
|
{
|
|
|
|
|
2024-02-16 16:51:25 +11:00
|
|
|
class SecondaryLoop
|
2024-02-06 17:57:59 +11:00
|
|
|
{
|
2024-02-16 16:51:25 +11:00
|
|
|
sim::graphics::GLMesh mesh1, mesh2;
|
2024-02-09 21:31:36 +11:00
|
|
|
double clock_at = 0, clock_now = 0;
|
2024-02-06 17:57:59 +11:00
|
|
|
|
2024-02-16 16:51:25 +11:00
|
|
|
sim::graphics::GLMesh gm_switch_2;
|
|
|
|
sim::graphics::GLMesh gm_switch_3;
|
2024-02-06 17:57:59 +11:00
|
|
|
|
2024-02-16 16:51:25 +11:00
|
|
|
sim::graphics::Mesh m_joystick_turbine_bypass;
|
|
|
|
sim::graphics::Mesh m_joystick_turbine_inlet;
|
|
|
|
sim::graphics::Mesh m_switch_2;
|
|
|
|
sim::graphics::Mesh m_switch_3;
|
2024-02-06 17:57:59 +11:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
2024-02-16 16:51:25 +11:00
|
|
|
SecondaryLoop();
|
2024-02-06 17:57:59 +11:00
|
|
|
void init();
|
|
|
|
void update(double dt);
|
|
|
|
void render();
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|