Skip to content
Snippets Groups Projects
Commit 605a075f authored by dylanmntrs's avatar dylanmntrs
Browse files

Ajout des commentaires manquants

parent 7667ff6a
No related branches found
No related tags found
No related merge requests found
......@@ -96,11 +96,11 @@ system_t create_system(planet_t *planet, int nb_planets){
sys.star= create_planet(M_SOLEIL, R_SOLEIL,0,0, COLOR_YELLOW);
return sys;
}
///
/// \param ctxt
/// \param system
/// \param width
/// \param height
/// Fonction d'affichage du système solaire
/// \param ctxt Context
/// \param system Un système solaire
/// \param width Largeur écran en px
/// \param height Hauteur écran en px
void show_system(struct gfx_context_t *ctxt, system_t *system, int width, int height, long resolution){
coordinates pos_star = vec2_to_coordinates(system->star.pos, width, height);
draw_full_circle(ctxt, pos_star.column, pos_star.row, 10e8*(system->star.rayon/resolution), system->star.couleur);
......@@ -122,7 +122,10 @@ void update_system(system_t *system, double delta_t){
system->planets[i].prec_pos = posInit;
}
}
/// Fonction d'initialisation de la première position de la planète
/// \param nb_planets Nombre de planètes dans notre système solaire
/// \param system Un système solaire
/// \param delta_t Delta T
void initialisation_pos(int nb_planets, system_t *system,double delta_t)
{
for (int i = 0; i < nb_planets; ++i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment