-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUtils.cpp
30 lines (27 loc) · 1.11 KB
/
Utils.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include "Utils.h"
#include "Particle.h"
#include <iostream>
#include <vector>;
#include "Defs.h"
#include "SDL.h"
//void GenerateParticles(int red_cout, int blue_count, int green_count, std::vector<Particle> red_particles, std::vector<Particle> blue_particles, std::vector<Particle> green_particles) {
//
// for (int i = 0; i <= red_cout; i++)
// red_particles.push_back(Particle(10, i * 2, 2, 2, 0.0f, 0.0f, 255, 0, 0));
//
// for (int i = 0; i <= green_count; i++)
// green_particles.push_back(Particle(20, i * 2, 2, 2, 0.0f, 0.0f, 0, 255, 0));
//
// for (int i = 0; i <= blue_count; i++)
// blue_particles.push_back(Particle(30, i * 2, 2, 2, 0.0f, 0.0f, 0, 0, 255));
//}
//void DrawAllParticles(SDL_Renderer* renderer, std::vector<Particle> red_particles, std::vector<Particle> blue_particles, std::vector<Particle> green_particles) {
// for (int i = 0; i <= red_particles.size() - 1; i++)
// red_particles[i].Draw(renderer);
//
// for (int i = 0; i <= blue_particles.size() - 1; i++)
// blue_particles[i].Draw(renderer);
//
// for (int i = 0; i <= green_particles.size() - 1; i++)
// green_particles[i].Draw(renderer);
//}