GlistEngine
Loading...
Searching...
No Matches
gFireworksParticles.h
Go to the documentation of this file.
1/*
2 * gFireworksParticles.h
3 *
4 * Created on: 26 Tem 2023
5 * Author: Batuhan Yigit
6 */
7
8#ifndef GRAPHICS_PARTICLES_GFIREWORKSPARTICLES_H_
9#define GRAPHICS_PARTICLES_GFIREWORKSPARTICLES_H_
10
11#include "gBaseParticles.h"
12#include "gImage.h"
13
15public:
18
19 void init(int particleNum);
20 void resetParticle(int particleNo);
21
22 void setPosition(float x, float y, float z);
23
24 void drawTex();
25
26private:
27 std::string getFireworkImageData();
28 gImage tex;
29 glm::vec3 pos;
30 float rainbowcolors[7][3] = {{0.9, 0.6, 0.9},
31 {0.97, 0.21, 0.21},
32 {0.99, 0.76, 0.99},
33 {0.98, 0.99, 0.21},
34 {0.38, 0.99, 0.94},
35 {0.32, 0.55, 0.99},
36 {0.64, 0.44, 0.99}};
37 int burstsize;
38 std::vector<int> resetedparticles;
39};
40
41#endif /* GRAPHICS_PARTICLES_GFIREWORKSPARTICLES_H_ */
Definition gBaseParticles.h:43
Definition gFireworksParticles.h:14
void init(int particleNum)
void resetParticle(int particleNo)
void setPosition(float x, float y, float z)
virtual ~gFireworksParticles()
Definition gImage.h:34