Skip to content
Snippets Groups Projects
Select Git revision
  • 06e8f994c0e7d0869c1b2de4b31bdf5db0380336
  • main default protected
2 results

PlanetarySystem.h

Blame
  • PlanetarySystem.h 531 B
    #ifndef PLANETARY_SYSTEM_H
    #define PLANETARY_SYSTEM_H
    
    #include <stdint.h>
    
    #include "CelestialObject.h"
    #include "gfx/gfx.h"
    
    const uint32_t SCREEN_WIDTH;
    const uint32_t SCREEN_HEIGHT;
    
    typedef struct {
        uint32_t objects_length;
        CelestialObject **objects;
        double interval;
    } PlanetarySystem;
    
    PlanetarySystem *planetary_system_create(double interval);
    void planetary_system_update(PlanetarySystem *planetary_system);
    void planetary_system_draw(PlanetarySystem *planetary_system, struct gfx_context_t *context);
    
    #endif