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
14
class
gFireworksParticles
:
public
gBaseParticles
{
15
public
:
16
gFireworksParticles
();
17
virtual
~gFireworksParticles
();
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
26
private
:
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_ */
gBaseParticles
Definition
gBaseParticles.h:43
gFireworksParticles
Definition
gFireworksParticles.h:14
gFireworksParticles::drawTex
void drawTex()
gFireworksParticles::gFireworksParticles
gFireworksParticles()
gFireworksParticles::init
void init(int particleNum)
gFireworksParticles::resetParticle
void resetParticle(int particleNo)
gFireworksParticles::setPosition
void setPosition(float x, float y, float z)
gFireworksParticles::~gFireworksParticles
virtual ~gFireworksParticles()
gImage
Definition
gImage.h:34
gBaseParticles.h
gImage.h
engine
graphics
particles
gFireworksParticles.h
Generated by
1.9.8