-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:daid/SeriousProton
- Loading branch information
Showing
3 changed files
with
75 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
#ifndef POST_PROCESS_MANAGER_H | ||
#define POST_PROCESS_MANAGER_H | ||
|
||
#include <SFML/Graphics.hpp> | ||
|
||
#include "stringImproved.h" | ||
#ifndef POST_PROCESS_MANAGER_H | ||
#define POST_PROCESS_MANAGER_H | ||
|
||
#include <SFML/Graphics.hpp> | ||
|
||
#include "stringImproved.h" | ||
#include "Updatable.h" | ||
#include "Renderable.h" | ||
|
||
class PostProcessor : public RenderChain | ||
{ | ||
private: | ||
#include "Renderable.h" | ||
|
||
class PostProcessor : public RenderChain | ||
{ | ||
private: | ||
sf::Shader shader; | ||
sf::RenderTexture renderTexture; | ||
sf::Vector2u size; | ||
|
||
RenderChain* chain; | ||
|
||
static bool global_post_processor_enabled; | ||
public: | ||
public: | ||
bool enabled; | ||
|
||
PostProcessor(string name, RenderChain* chain); | ||
PostProcessor(string name, RenderChain* chain); | ||
virtual ~PostProcessor() {} | ||
|
||
virtual void render(sf::RenderTarget& window); | ||
|
||
void setUniform(string name, float value); | ||
|
||
static void setEnable(bool enable) { global_post_processor_enabled = enable; } | ||
static bool isEnabled() { return global_post_processor_enabled; } | ||
}; | ||
|
||
#endif//POST_PROCESS_MANAGER_H | ||
static void setEnable(bool enable) { global_post_processor_enabled = enable; } | ||
static bool isEnabled() { return global_post_processor_enabled; } | ||
}; | ||
|
||
#endif//POST_PROCESS_MANAGER_H |