Adds a masking effect to a scene node.
#include <renderer/YiMask.h>
Public Member Functions | |
CYIMask () | |
virtual | ~CYIMask () |
void | SetImage (const std::shared_ptr< CYIAssetTexture > &pTextureAsset) |
const std::shared_ptr< CYIMesh > & | GetMesh () const |
const std::shared_ptr< CYIMaterial > & | GetMaterial () const |
void | SetTransform (const glm::mat4 &maskTransform) |
const glm::mat4 & | GetTransform () const |
void | CalculateModelMatrix (const glm::mat4 &worldTransform) |
const glm::mat4 & | GetModelMatrix () const |
Protected Attributes | |
std::shared_ptr< CYIMesh > | m_pMesh |
std::shared_ptr< CYIMaterial > | m_pMaterial |
glm::mat4 | m_ModelMatrix |
glm::mat4 | m_Transform |
CYIMask::CYIMask | ( | ) |
|
virtual |
void CYIMask::CalculateModelMatrix | ( | const glm::mat4 & | worldTransform | ) |
const std::shared_ptr<CYIMaterial>& CYIMask::GetMaterial | ( | ) | const |
Get the material represented by this mask.
const std::shared_ptr<CYIMesh>& CYIMask::GetMesh | ( | ) | const |
Get the mesh data prepresented by this mask.
const glm::mat4& CYIMask::GetModelMatrix | ( | ) | const |
const glm::mat4& CYIMask::GetTransform | ( | ) | const |
void CYIMask::SetImage | ( | const std::shared_ptr< CYIAssetTexture > & | pTextureAsset | ) |
Initialize mask with the software buffer associated with maskImage.
void CYIMask::SetTransform | ( | const glm::mat4 & | maskTransform | ) |
|
protected |
The mask's current model matrix
|
protected |
The mask's material, if any
|
protected |
The mask's mesh, if any
|
protected |
The mask's transform