19 #ifndef OST_GFX_SHADER_HH
20 #define OST_GFX_SHADER_HH
36 namespace ost {
namespace gfx {
58 void Link(
const std::string& pr_name,
const std::string& vs_code,
const std::string& fs_code);
60 static bool Compile(
const std::string& shader_name,
61 const std::string& shader_code,
69 GLuint current_program_;
72 std::stack<String> program_stack_;
74 std::map<String,GLuint> shader_program_map_;
String GetCurrentName() const
GLuint GetCurrentProgram() const
static Shader & Instance()
void Activate(const String &name)
void Link(const std::string &pr_name, const std::string &vs_code, const std::string &fs_code)
static bool Compile(const std::string &shader_name, const std::string &shader_code, GLenum shader_type, GLuint &shader_id)
#define DLLEXPORT_OST_GFX