Remove unnecessary variables
This commit is contained in:
		| @@ -71,11 +71,11 @@ | |||||||
|       "-x", |       "-x", | ||||||
|       "c", |       "c", | ||||||
|       "-o", |       "-o", | ||||||
|       "/tmp/main-118336.o", |       "/tmp/main-77a7ba.o", | ||||||
|       "main.c" |       "main.c" | ||||||
|     ], |     ], | ||||||
|     "directory": "/home/abdelrahman/Sources/programming/starfield", |     "directory": "/home/abdelrahman/Sources/programming/starfield", | ||||||
|     "file": "/home/abdelrahman/Sources/programming/starfield/main.c", |     "file": "/home/abdelrahman/Sources/programming/starfield/main.c", | ||||||
|     "output": "/tmp/main-118336.o" |     "output": "/tmp/main-77a7ba.o" | ||||||
|   } |   } | ||||||
| ] | ] | ||||||
|   | |||||||
							
								
								
									
										9
									
								
								main.c
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								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, | void update_startfield(vec3f_t *stars, u32 count, i32 spread, u32 speed, | ||||||
|                        f64 delta); |                        f64 delta); | ||||||
| void render_starfield(SDL_Surface *surface, vec3f_t *stars, u32 count, | void render_starfield(SDL_Surface *surface, vec3f_t *stars, u32 count, | ||||||
|                       i32 spread, f64 aov); |                       i32 spread); | ||||||
|  |  | ||||||
| int main(void) { | int main(void) { | ||||||
|   srand(time(NULL)); |   srand(time(NULL)); | ||||||
| @@ -100,10 +100,7 @@ int main(void) { | |||||||
|  |  | ||||||
|     render_clear(canvas, BG_COLOR); |     render_clear(canvas, BG_COLOR); | ||||||
|  |  | ||||||
|     u32 scalar = 10; |     render_starfield(canvas, stars, STAR_COUNT, STAR_SPREAD); | ||||||
|     vec2i_t pos; |  | ||||||
|  |  | ||||||
|     render_starfield(canvas, stars, STAR_COUNT, STAR_SPREAD, 60.0); |  | ||||||
|  |  | ||||||
|     SDL_BlitSurface(canvas, NULL, surface, NULL); |     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, | void render_starfield(SDL_Surface *surface, vec3f_t *stars, u32 count, | ||||||
|                       i32 spread, f64 aov) { |                       i32 spread) { | ||||||
|   vec2f_t projected[count]; |   vec2f_t projected[count]; | ||||||
|   vec2i_t coords; |   vec2i_t coords; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user