18 #ifndef ION_GFX_SHADER_H_
19 #define ION_GFX_SHADER_H_
40 const std::string
GetInfoLog()
const {
return info_log_; }
51 std::string doc_string_;
54 mutable std::string info_log_;
63 kSourceChanged = kNumBaseChanges,
68 explicit Shader(
const std::string& source);
83 Field<std::string> source_;
92 #endif // ION_GFX_SHADER_H_
const std::string GetInfoLog() const
const std::string & GetDocString() const
void SetSource(const std::string &source)
Sets/returns the source of the shader.
base::ReferentPtr< Shader >::Type ShaderPtr
Convenience typedef for shared pointers to Shaders.
Changes
Changes that affect the resource.
const std::string & GetSource() const
A Shader represents an OpenGL shader stage.
Base class for Shader and ShaderProgram objects.
void SetDocString(const std::string &s)
Sets/returns a string documenting the shader program for help.
A SharedPtr is a smart shared pointer to an instance of some class that implements reference counting...
ResourceHolder is an internal base class for objects that hold resources managed by an outside entity...
void SetInfoLog(const std::string &info_log) const
Sets/returns the latest info log.