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

Public Member Functions

 RenderTarget (Core::Guid ID)
 
bool Initialize (const std::string &file)
 Initialize a RenderTarget synchronously with the GPUResourcePool. More...
 
Resource::RenderTarget::BlendOp GetColorBlendOp () const
 Get the blend op to be used on the color channels of this render target. More...
 
Resource::RenderTarget::BlendOp GetAlphaBlendOp () const
 Get the blend op to be used on the alpha channel of this render target *. More...
 
RenderTargetBase *const GetBase () const
 Get a pointer to the RenderTargetBase that this class wraps. More...
 

Member Function Documentation

Resource::RenderTarget::BlendOp RenderTarget::GetAlphaBlendOp ( ) const

Get the blend op to be used on the alpha channel of this render target *.

Returns
A BlendOp enum that represents the blending operation to be used on the alpha channel
RenderTargetBase *const RenderTarget::GetBase ( ) const

Get a pointer to the RenderTargetBase that this class wraps.

Returns
A pointer to the RenderTargetBase object that this object wraps
Resource::RenderTarget::BlendOp RenderTarget::GetColorBlendOp ( ) const

Get the blend op to be used on the color channels of this render target.

Returns
A BlendOp enum that represents the blending operation to be used on the color channels
bool RenderTarget::Initialize ( const std::string &  file)

Initialize a RenderTarget synchronously with the GPUResourcePool.

If the GPUResourceThread is already in use the texture will be created directly. If the thread is not locked we will feed the thread a request. This will LOCK the main thread until it completes.

Parameters
fileThe file path of the RenderTexture json file that we want to load off the disk
Returns
A boolean representing whether or not this operation succeeded

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