mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
30 lines
507 B
C++
30 lines
507 B
C++
#ifndef GAME_SHADERHELPER_H
|
|
#define GAME_SHADERHELPER_H
|
|
|
|
#include <string>
|
|
|
|
namespace MWRender
|
|
{
|
|
class RenderingManager;
|
|
|
|
///
|
|
/// \brief manages the main shader
|
|
///
|
|
class ShaderHelper
|
|
{
|
|
public:
|
|
ShaderHelper(RenderingManager* rend);
|
|
|
|
void applyShaders();
|
|
///< apply new settings
|
|
|
|
private:
|
|
RenderingManager* mRendering;
|
|
|
|
void createShader(const bool mrt, const bool shadows, const bool split, const std::string& name);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|