Ocular Engine
Ocular::Graphics::Shader Class Referenceabstract
Inheritance diagram for Ocular::Graphics::Shader:
Ocular::Core::Resource Ocular::Graphics::FragmentShader Ocular::Graphics::GeometryShader Ocular::Graphics::PostTessellationShader Ocular::Graphics::PreTessellationShader Ocular::Graphics::VertexShader Ocular::Graphics::D3D11FragmentShader Ocular::Graphics::D3D11GeometryShader Ocular::Graphics::D3D11PostTessellationShader Ocular::Graphics::D3D11PreTessellationShader Ocular::Graphics::D3D11VertexShader

Public Member Functions

virtual void unload ()=0
 
virtual void bind ()=0
 
virtual void unbind ()=0
 
ShaderProgramgetParent () 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)
 
ResourceMetadatagetMetadata () const
 
void setMetadata (ResourceMetadata *metadata)
 

Protected Attributes

ShaderProgramm_Parent
 
- Protected Attributes inherited from Ocular::Core::Resource
ResourceType m_Type
 
ResourceMetadatam_Metadata
 
File m_SourceFile
 
bool m_IsInMemory
 
uint64_t m_SizeInMemory
 
std::string m_Name
 
std::string m_MappingName
 

Friends

class ShaderProgram
 

Member Function Documentation

ShaderProgram * Ocular::Graphics::Shader::getParent ( ) const
Returns
The ShaderProgram that owns this Shader

The documentation for this class was generated from the following files: