GlistEngine
Loading...
Searching...
No Matches
gBloom.h
Go to the documentation of this file.
1/*
2 * gBloom.h
3 *
4 * Created on: 19 Tem 2023
5 * Author: Batuhan Yigit
6 */
7
8#ifndef GRAPHICS_POSTEFFECTS_GBLOOM_H_
9#define GRAPHICS_POSTEFFECTS_GBLOOM_H_
10
11#include "gBasePostProcess.h"
12#include <vector>
13
14class gBloom: public gBasePostProcess {
15public:
16 gBloom(float intensity = 1.0f, float bloomsize = 2.0f, float threshold = 0.8f);
17 gBloom(float intensity, float bloomsize, float threshold, std::vector<std::vector<float>> rects, float screenwidth, float screenheight);
18 gBloom(float intensity, float bloomsize, float rgb[]);
19 virtual ~gBloom();
20
21 void use();
22 void setRect(int rectnum, float x, float y, float width, float height);
23 std::vector<std::vector<float>> rects;
24
25protected:
26 const std::string getVertSrc();
27 const std::string getFragSrc();
28
29private:
30 bool isrectsset = false;
31 int rectssize;
32 int deneme;
33};
34
35#endif /* GRAPHICS_POSTEFFECTS_GBLOOM_H_ */
Definition gBasePostProcess.h:15
Definition gBloom.h:14
const std::string getVertSrc()
const std::string getFragSrc()
void setRect(int rectnum, float x, float y, float width, float height)
gBloom(float intensity, float bloomsize, float rgb[])
std::vector< std::vector< float > > rects
Definition gBloom.h:23
gBloom(float intensity, float bloomsize, float threshold, std::vector< std::vector< float > > rects, float screenwidth, float screenheight)
gBloom(float intensity=1.0f, float bloomsize=2.0f, float threshold=0.8f)
void use()
virtual ~gBloom()