|
|
|
|
@ -328,22 +328,6 @@ float scale_radius(double radius, double scale) {
|
|
|
|
|
return (float)(radius * scale); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// FIXME: no longer used, can maybe re-use when refactoring render_simulation()
|
|
|
|
|
// Render a single celestial body
|
|
|
|
|
void render_body(CelestialBody* body, RenderState* render_state) { |
|
|
|
|
Vector3 position = sim_to_render(body->global_position, render_state->distance_scale); |
|
|
|
|
float radius = scale_radius(body->radius, render_state->size_scale); |
|
|
|
|
|
|
|
|
|
Color color = { |
|
|
|
|
(unsigned char)(body->color[0] * 255), |
|
|
|
|
(unsigned char)(body->color[1] * 255), |
|
|
|
|
(unsigned char)(body->color[2] * 255), |
|
|
|
|
255 |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
DrawSphereWires(position, radius, 16, 16, color); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void render_maneuver_marker_screen_space(Spacecraft* craft, Maneuver* maneuver, RenderState* render_state) { |
|
|
|
|
if (maneuver->executed) { |
|
|
|
|
return; |
|
|
|
|
|