Ocular Engine
|
Public Member Functions | |
virtual void | unload ()=0 |
virtual void | bind ()=0 |
virtual void | unbind ()=0 |
ShaderProgram * | getParent () const |
Public Member Functions inherited from Ocular::Core::Resource | |
Resource (File const &source) | |
virtual void | forceLoad () |
File | getSourceFile () const |
void | setSourceFile (File const &file) |
void | setIsInMemory (bool inMemory) |
bool | isInMemory () const |
void | setSize (uint64_t size) |
uint64_t | getSize () const |
ResourceType | getResourceType () const |
void | setName (std::string const &name) |
std::string const & | getName () const |
std::string const & | getMappingName () const |
void | setMappingName (std::string const &name) |
ResourceMetadata * | getMetadata () const |
void | setMetadata (ResourceMetadata *metadata) |
Protected Attributes | |
ShaderProgram * | m_Parent |
Protected Attributes inherited from Ocular::Core::Resource | |
ResourceType | m_Type |
ResourceMetadata * | m_Metadata |
File | m_SourceFile |
bool | m_IsInMemory |
uint64_t | m_SizeInMemory |
std::string | m_Name |
std::string | m_MappingName |
Friends | |
class | ShaderProgram |
|
pure virtual |
Binds the shader and sets it as the active render shader.
Implemented in Ocular::Graphics::D3D11VertexShader, Ocular::Graphics::D3D11FragmentShader, Ocular::Graphics::D3D11GeometryShader, Ocular::Graphics::D3D11PostTessellationShader, Ocular::Graphics::D3D11PreTessellationShader, Ocular::Graphics::FragmentShader, Ocular::Graphics::GeometryShader, Ocular::Graphics::PostTessellationShader, Ocular::Graphics::PreTessellationShader, and Ocular::Graphics::VertexShader.
ShaderProgram * Ocular::Graphics::Shader::getParent | ( | ) | const |
|
pure virtual |
Unbinds the shader as the active render shader.
Implemented in Ocular::Graphics::D3D11VertexShader, Ocular::Graphics::D3D11FragmentShader, Ocular::Graphics::D3D11GeometryShader, Ocular::Graphics::D3D11PostTessellationShader, Ocular::Graphics::D3D11PreTessellationShader, Ocular::Graphics::FragmentShader, Ocular::Graphics::GeometryShader, Ocular::Graphics::PostTessellationShader, Ocular::Graphics::PreTessellationShader, and Ocular::Graphics::VertexShader.
|
pure virtual |
Frees all memory used by this Resource.
Reimplemented from Ocular::Core::Resource.
Implemented in Ocular::Graphics::D3D11VertexShader, Ocular::Graphics::D3D11FragmentShader, Ocular::Graphics::D3D11GeometryShader, Ocular::Graphics::D3D11PostTessellationShader, Ocular::Graphics::D3D11PreTessellationShader, Ocular::Graphics::FragmentShader, Ocular::Graphics::GeometryShader, Ocular::Graphics::PostTessellationShader, Ocular::Graphics::PreTessellationShader, and Ocular::Graphics::VertexShader.