#include <renderer/YiEffect.h>
| virtual CYIEffect::~CYIEffect |
( |
| ) |
|
|
virtual |
Connect this effect to a timeline track. This is normally called by the object that owns the effect to attach it automatically to AE timelines as they are loaded.
| void CYIEffect::Enable |
( |
bool |
bEnable | ) |
|
Set the effect on or off.
Get the effect's camera. This camera describes a view which is the content of the scene viewed such that the scene encompasses a region matching the size of the effect's region of interest.
- Warning
- this camera is owned by the effect and should not be cached or deleted.
Get the effect's configuration information.
| const std::shared_ptr<CYIMaterial> CYIEffect::GetMaterial |
( |
uint32_t |
nIndex | ) |
const |
Get the material for the effect on a particular pass.
| const std::shared_ptr<CYIMesh>& CYIEffect::GetMesh |
( |
| ) |
const |
Get the mesh data represented by this effect.
| bool CYIEffect::GetNeedsUpdate |
( |
| ) |
const |
Get the effect's current status for requiring a rendering update.
| const std::shared_ptr<CYIRenderTarget> CYIEffect::GetRenderTarget |
( |
uint32_t |
nIndex | ) |
const |
Get the render target for the effect on a particular pass.
| const glm::mat4& CYIEffect::GetTransform |
( |
| ) |
const |
Get the transform for the effect.
| void CYIEffect::ResetEffectSize |
( |
int32_t |
nWidth, |
|
|
int32_t |
nHeight |
|
) |
| |
reset effect with a given configuration.
| void CYIEffect::SetCustomUniforms |
( |
| ) |
|
Set the effect shader uniforms.
Initialize effect with a given configuration.
Set the effect to a new owner.
| void CYIEffect::SetNeedsUpdate |
( |
bool |
bUpdate | ) |
const |
Set the effect's current status for requiring a rendering update. this is called by the node if children are being updated which requires us to redraw the effects even though the effect itself may not have changed.
Set the render target for the effect on a particular pass.
| void CYIEffect::SetTransform |
( |
glm::mat4 & |
Transform | ) |
|
Set a transform for the effect.
| void CYIEffect::SetUniformValue |
( |
uint32_t |
nTrackID, |
|
|
const CYIVariant & |
value |
|
) |
| |
Set the effect shader uniforms.
| void CYIEffect::SetUniformValueDirect |
( |
uint32_t |
uIndex, |
|
|
const CYIVariant & |
value |
|
) |
| |
Set the effect shader uniforms.
| bool CYIEffect::m_bEnable |
|
protected |
| bool CYIEffect::m_bNeedsUpdate |
|
mutableprotected |
The effect's configuration
| std::vector<std::shared_ptr<CYIMaterial> > CYIEffect::m_pMaterials |
|
protected |
| std::shared_ptr<CYIMesh> CYIEffect::m_pMesh |
|
protected |
| std::shared_ptr<CYIMaterial> CYIEffect::m_pOrigMaterial |
|
protected |
The effect owner's material
| std::shared_ptr<CYIMesh> CYIEffect::m_pOrigMesh |
|
protected |
The effect owner's target
| glm::mat4 CYIEffect::m_Transform |
|
protected |
The effect's transformation
The effect's uniform variables, if any
The documentation for this class was generated from the following file: