35 #include "../../Core/IOData/file_system.h" 36 #include "graphic_context.h" 44 class GraphicContextProvider;
45 class XMLResourceDocument;
46 class ShaderObject_Impl;
47 class ShaderObjectProvider;
220 std::shared_ptr<ShaderObject_Impl> impl;
Shader Object.
Definition: shader_object.h:68
bool compile()
Compile program.
ShaderType get_shader_type() const
Gets the shader type.
Definition: shader_object.h:53
Definition: shader_object.h:55
I/O Device interface.
Definition: iodevice.h:50
Interface for implementing a GraphicContext target.
Definition: graphic_context_provider.h:86
static ShaderObject load(GraphicContext &gc, const std::string &resource_id, const XMLResourceDocument &resources)
Load.
bool operator==(const ShaderObject &other) const
Handle comparison operator.
void throw_if_null() const
Throw an exception if this object is invalid.
Definition: shader_object.h:56
Definition: shader_object.h:58
Shader Object provider.
Definition: shader_object_provider.h:42
ShaderObjectProvider * get_provider() const
Get Provider.
Virtual File System (VFS).
Definition: file_system.h:47
ShaderType
Shader Type.
Definition: shader_object.h:50
Definition: shader_object.h:54
ShaderObject()
Constructs a null instance.
Interface to drawing graphics.
Definition: graphic_context.h:257
std::string get_info_log() const
Get shader object's info log.
XML Resource Document.
Definition: xml_resource_document.h:48
static ShaderObject load_and_compile(GraphicContext &gc, ShaderType type, const std::string &filename, const FileSystem &fs)
Load and compile.
bool is_null() const
Returns true if this object is invalid.
Definition: shader_object.h:193
unsigned int get_handle() const
Returns the OpenGL shader handle.
std::string get_shader_source() const
Get shader source code.
Definition: shader_object.h:57
Definition: shader_object.h:52