#include <renderer/YiEffect.h>
◆ CYIEffect()
◆ ~CYIEffect()
virtual CYIEffect::~CYIEffect |
( |
| ) |
|
|
virtual |
◆ ConnectTimelineTrack()
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.
◆ Enable()
void CYIEffect::Enable |
( |
bool |
enable | ) |
|
Set the effect on or off.
◆ GetCamera()
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.
◆ GetConfig()
Get the effect's configuration information.
◆ GetMaterial()
Get the material for the effect on a particular pass.
◆ GetMesh()
const std::shared_ptr<CYIMesh>& CYIEffect::GetMesh |
( |
| ) |
const |
Get the mesh data represented by this effect.
◆ GetNeedsUpdate()
bool CYIEffect::GetNeedsUpdate |
( |
| ) |
const |
Get the effect's current status for requiring a rendering update.
◆ GetRenderTarget()
Get the render target for the effect on a particular pass.
◆ GetTransform()
const glm::mat4& CYIEffect::GetTransform |
( |
| ) |
const |
Get the transform for the effect.
◆ ResetEffectSize()
void CYIEffect::ResetEffectSize |
( |
int32_t |
width, |
|
|
int32_t |
height |
|
) |
| |
reset effect with a given configuration.
◆ SetCustomUniforms()
void CYIEffect::SetCustomUniforms |
( |
| ) |
|
Set the effect shader uniforms.
◆ SetEffect()
Initialize effect with a given configuration.
◆ SetEffectOwner()
Set the effect to a new owner.
◆ SetNeedsUpdate()
void CYIEffect::SetNeedsUpdate |
( |
bool |
update | ) |
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.
◆ SetRenderTarget()
Set the render target for the effect on a particular pass.
◆ SetTransform()
void CYIEffect::SetTransform |
( |
glm::mat4 & |
Transform | ) |
|
Set a transform for the effect.
◆ SetUniformValue()
void CYIEffect::SetUniformValue |
( |
uint32_t |
trackID, |
|
|
const CYIVariant & |
value |
|
) |
| |
Set the effect shader uniforms.
◆ SetUniformValueDirect()
void CYIEffect::SetUniformValueDirect |
( |
size_t |
index, |
|
|
const CYIVariant & |
value |
|
) |
| |
Set the effect shader uniforms.
◆ m_config
The effect's configuration
◆ m_enable
◆ m_needsUpdate
bool CYIEffect::m_needsUpdate |
|
mutableprotected |
◆ m_pMaterials
std::vector<std::shared_ptr<CYIMaterial> > CYIEffect::m_pMaterials |
|
protected |
◆ m_pMesh
std::shared_ptr<CYIMesh> CYIEffect::m_pMesh |
|
protected |
◆ m_pOrigMaterial
std::shared_ptr<CYIMaterial> CYIEffect::m_pOrigMaterial |
|
protected |
The effect owner's material
◆ m_pOrigMesh
std::shared_ptr<CYIMesh> CYIEffect::m_pOrigMesh |
|
protected |
◆ m_pOrigTarget
The effect owner's target
◆ m_pOwner
◆ m_pTargets
◆ m_Transform
glm::mat4 CYIEffect::m_Transform |
|
protected |
The effect's transformation
◆ UniformVariables
The effect's uniform variables, if any
The documentation for this class was generated from the following file: