diff --git a/compile_commands.json b/compile_commands.json index 37acc45..b64c10e 100644 --- a/compile_commands.json +++ b/compile_commands.json @@ -71,11 +71,11 @@ "-x", "c", "-o", - "/tmp/main-118336.o", + "/tmp/main-77a7ba.o", "main.c" ], "directory": "/home/abdelrahman/Sources/programming/starfield", "file": "/home/abdelrahman/Sources/programming/starfield/main.c", - "output": "/tmp/main-118336.o" + "output": "/tmp/main-77a7ba.o" } ] diff --git a/main.c b/main.c index bc55a4d..3709df6 100644 --- a/main.c +++ b/main.c @@ -61,7 +61,7 @@ void init_starfield(vec3f_t *stars, u32 count, i32 spread); void update_startfield(vec3f_t *stars, u32 count, i32 spread, u32 speed, f64 delta); void render_starfield(SDL_Surface *surface, vec3f_t *stars, u32 count, - i32 spread, f64 aov); + i32 spread); int main(void) { srand(time(NULL)); @@ -100,10 +100,7 @@ int main(void) { render_clear(canvas, BG_COLOR); - u32 scalar = 10; - vec2i_t pos; - - render_starfield(canvas, stars, STAR_COUNT, STAR_SPREAD, 60.0); + render_starfield(canvas, stars, STAR_COUNT, STAR_SPREAD); SDL_BlitSurface(canvas, NULL, surface, NULL); @@ -219,7 +216,7 @@ void update_startfield(vec3f_t *stars, u32 count, i32 spread, u32 speed, } void render_starfield(SDL_Surface *surface, vec3f_t *stars, u32 count, - i32 spread, f64 aov) { + i32 spread) { vec2f_t projected[count]; vec2i_t coords;