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
14
class
gBloom
:
public
gBasePostProcess
{
15
public
:
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
25
protected
:
26
const
std::string
getVertSrc
();
27
const
std::string
getFragSrc
();
28
29
private
:
30
bool
isrectsset =
false
;
31
int
rectssize;
32
int
deneme;
33
};
34
35
#endif
/* GRAPHICS_POSTEFFECTS_GBLOOM_H_ */
gBasePostProcess
Definition
gBasePostProcess.h:15
gBloom
Definition
gBloom.h:14
gBloom::getVertSrc
const std::string getVertSrc()
gBloom::getFragSrc
const std::string getFragSrc()
gBloom::setRect
void setRect(int rectnum, float x, float y, float width, float height)
gBloom::gBloom
gBloom(float intensity, float bloomsize, float rgb[])
gBloom::rects
std::vector< std::vector< float > > rects
Definition
gBloom.h:23
gBloom::gBloom
gBloom(float intensity, float bloomsize, float threshold, std::vector< std::vector< float > > rects, float screenwidth, float screenheight)
gBloom::gBloom
gBloom(float intensity=1.0f, float bloomsize=2.0f, float threshold=0.8f)
gBloom::use
void use()
gBloom::~gBloom
virtual ~gBloom()
gBasePostProcess.h
engine
graphics
posteffects
gBloom.h
Generated by
1.9.8