vibe coding an orbital mechanics simulation to try out claude code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
741 B

#ifndef UI_RENDERER_H
#define UI_RENDERER_H
#include "simulation.h"
#include "renderer.h"
#include "raylib.h"
// UI state
struct UIState {
int body_list_scroll; // Scroll position for body list
int body_list_active; // Active item index in body list
int selected_craft_index; // Selected spacecraft index (-1 = no selection)
};
void gui_init();
// UI rendering functions
void render_info(SimulationState* sim);
void render_body_list_ui(SimulationState* sim, RenderState* render_state, UIState* ui_state);
void render_body_info_ui(SimulationState* sim, RenderState* render_state, UIState* ui_state);
void render_maneuver_list_ui(SimulationState* sim, RenderState* render_state, UIState* ui_state);
#endif