demotool/combine.hh

36 lines
633 B
C++
Raw Normal View History

2017-10-01 18:51:02 +02:00
#pragma once
#ifndef REAL_BUILD
# define REAL_BUILD
# include "externals.hh"
# include "texture.hh"
# include "rendertarget.hh"
# include "utilities.hh"
2017-10-01 19:40:38 +02:00
# include "programs.hh"
2017-10-01 18:51:02 +02:00
# undef REAL_BUILD
#endif
struct T_CombinePass
{
T_CombinePass( ) = delete;
T_CombinePass( T_CombinePass const& ) = delete;
T_CombinePass( T_CombinePass&& ) = delete;
T_CombinePass( __rw__ T_FilesWatcher& watcher ,
__rw__ T_Texture& image ,
__rw__ T_Texture& bloom );
void render( );
void makeUI( );
private:
T_Texture& txImage_;
T_Texture& txBloom_;
T_ShaderProgram program_;
float bloomStrength_;
float bloomAttenuation_;
};