DeferredRenderer 1.0
|
00001 #ifndef EFFECT_H 00002 #define EFFECT_H 00003 00004 #include "string" 00005 #include "vector" 00006 #include "ngl/Types.h" 00007 00016 class Effect{ 00017 public: 00019 Effect(){} 00023 Effect(GLuint _texId, const std::string &_shaderName); 00025 ~Effect(); 00026 00030 void addSourceTexture(const std::string &_samplerName, GLuint _texId); 00031 00033 void prepare(); 00034 00037 GLuint getOutputId(){return m_output;} 00038 00041 std::string getShaderName(){return m_shaderName;} 00042 00043 private: 00045 std::vector<GLuint> m_sources; 00047 GLuint m_output; 00049 std::string m_shaderName; 00050 }; 00051 00052 #endif // EFFECT_H