HatchitGraphics
Public Member Functions | List of all members
Hatchit::Graphics::Shader Class Reference
Inheritance diagram for Hatchit::Graphics::Shader:

Public Member Functions

 Shader (Core::Guid ID)
 
bool Initialize (const std::string &file)
 Initialize a Shader with the GPUResourcePool. More...
 
ShaderBase *const GetBase () const
 Gets a pointer to the ShaderBase that this class wraps. More...
 

Member Function Documentation

ShaderBase *const Hatchit::Graphics::Shader::GetBase ( ) const

Gets a pointer to the ShaderBase that this class wraps.

Returns
A poiner to the ShaderBase object that this class wraps.
bool Hatchit::Graphics::Shader::Initialize ( const std::string &  file)

Initialize a Shader with the GPUResourcePool.

This initialization step takes place on the GPUResourceThread but LOCKS the main thread. An InitializeAsync method should be used for asynchronous requests. If the pool is already in use we will assume that the request is made inside the thread and the Shader will be created immediately.

Parameters
fileThe file path to the shader we want to load from disk
Returns
A boolean representing whether or not this operation succeeded

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