19 #ifndef OST_GFX_SHADER_HH
20 #define OST_GFX_SHADER_HH
36 namespace ost {
namespace gfx {
45 void Activate(
const String& name);
48 bool IsActive()
const;
50 GLuint GetCurrentProgram()
const;
51 String GetCurrentName()
const;
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_;
#define DLLEXPORT_OST_GFX