[ Back to Geeks3D.com ]
 GeeXLab
Laboratory for Real Time 3D Programming (prototyping and demos) OpenGL, Lua, Python, GLSL, PhysX and more...Reference Guide Host-API Lua / Python
» Back to Homepage
» Back to Developer's Guide Index
HYP_PostProcessing Library
Post processing library
Number of functions: 21
HYP_PostProcessing.GetId
Returns the post processing id from the name.
: Lua
name [STRING]: post processing name (declared in XML node)
id [INTEGER]: post processing id
:
ppId = HYP_PostProcessing.GetId("PP01")
HYP_PostProcessing.SetState
Sets the state (enabled or disabled) of the post processing.
: Lua
id [INTEGER]: post processing id
state [INTEGER]: state (0 or 1)
:
HYP_PostProcessing.SetState(ppId, 0)
HYP_PostProcessing.GetEffectId
Returns the id of a post processing effect.
: Lua
name [STRING]: effect name (declared in XML node)
ppId [INTEGER]: post processing id
id [INTEGER]: effect id
:
effectId = HYP_PostProcessing.GetEffectId("effect01", ppId)
HYP_PostProcessing.SetEffectState
Sets the state (enabled or disabled) of a post processing effect.
: Lua
id [INTEGER]: effect id
state [INTEGER]: state (0 or 1)
:
HYP_PostProcessing.SetEffectState(effectId, 0)
HYP_PostProcessing.GetPhaseId
Returns the id of a post processing effect phase.
: Lua
name [STRING]: phase name (declared in XML node)
effectId [INTEGER]: effect id
id [INTEGER]: phase id
:
phaseId = HYP_PostProcessing.GetPhaseId("phase01", effectId)
HYP_PostProcessing.SetPhaseState
Sets the state (enabled or disabled) of a post processing effect phase.
: Lua
id [INTEGER]: phase id
state [INTEGER]: state (0 or 1)
:
HYP_PostProcessing.SetPhaseState(phaseId, 0)
HYP_PostProcessing.GetStepId
Returns the id of a post processing effect phase step.
: Lua
name [STRING]: step name (declared in XML node)
phaseId [INTEGER]: phase id
id [INTEGER]: step id
:
stepId = HYP_PostProcessing.GetStepId("step01", phaseId)
HYP_PostProcessing.SetStepState
Sets the state (enabled or disabled) of a post processing effect phase step.
: Lua
id [INTEGER]: step id
state [INTEGER]: state (0 or 1)
:
HYP_PostProcessing.SetStepState(stepId, 0)
HYP_PostProcessing.Create
Creates a post processing object.
: Lua
id [INTEGER]: post processing id
:
id = HYP_PostProcessing.Create()
HYP_PostProcessing.Destroy
Destroys a post processing object.
: Lua
id [INTEGER]: post processing id
:
HYP_PostProcessing.Destroy(id)
HYP_PostProcessing.AddEffect
Creates and adds an effect to an existing post processing object.
: Lua
id [INTEGER]: post processing id
effectId [INTEGER]: effect id
:
effectId = HYP_PostProcessing.AddEffect(id)
HYP_PostProcessing.RemoveEffect
Removes and destroys an effect from an existing post processing object.
: Lua
id [INTEGER]: post processing id
effectId [INTEGER]: effect id
:
HYP_PostProcessing.RemoveEffect(id, effectId)
HYP_PostProcessing.EffectAddPhase
Creates and adds a phase to a post-processing effect.
: Lua
id [INTEGER]: post processing id
effectId [INTEGER]: effect id
phaseId [INTEGER]: phase id
:
phaseId = HYP_PostProcessing.EffectAddPhase(id, effectId)
HYP_PostProcessing.EffectRemovePhase
Removes and destroys a phase from a post-processing effect.
: Lua
id [INTEGER]: post processing id
effectId [INTEGER]: effect id
phaseId [INTEGER]: phase id
:
HYP_PostProcessing.EffectRemovePhase(id, effectId, phaseId)
HYP_PostProcessing.EffectPhaseAddStep
Creates and adds a step to a post-processing effect phase.
: Lua
id [INTEGER]: post processing id
effectId [INTEGER]: effect id
phaseId [INTEGER]: phase id
stepId [INTEGER]: step id
:
stepId = HYP_PostProcessing.EffectPhaseAddStep(id, effectId, phaseId)
HYP_PostProcessing.EffectPhaseRemoveStep
Removes and destroys a step of a post-processing effect phase.
: Lua
id [INTEGER]: post processing id
effectId [INTEGER]: effect id
phaseId [INTEGER]: phase id
stepId [INTEGER]: step id
:
HYP_PostProcessing.EffectPhaseRemoveStep(id, effectId, phaseId, stepId)
HYP_PostProcessing.EffectPhaseStepSetGpuProgram
Sets the GPU program for a step.
: Lua
id [INTEGER]: post processing id
effectId [INTEGER]: effect id
phaseId [INTEGER]: phase id
stepId [INTEGER]: step id
gpuShaderId [INTEGER]: gpu program id
:
HYP_PostProcessing.EffectPhaseStepSetGpuProgram(id, effectId, phaseId, stepId, gpuShaderId)
HYP_PostProcessing.EffectPhaseStepSetRenderTarget
Sets the render target for a step.
: Lua
id [INTEGER]: post processing id
effectId [INTEGER]: effect id
phaseId [INTEGER]: phase id
stepId [INTEGER]: step id
rtId [INTEGER]: render target id. If == 0, the render target is the normal framebuffer.
:
HYP_PostProcessing.EffectPhaseStepSetRenderTarget(id, effectId, phaseId, stepId, rtId)
HYP_PostProcessing.EffectPhaseStepAddTexture
Adds a texture source for a step GPU shader.
: Lua
id [INTEGER]: post processing id
effectId [INTEGER]: effect id
phaseId [INTEGER]: phase id
stepId [INTEGER]: step id
texId [INTEGER]: source texture id.
:
texId = HYP_PostProcessing.EffectPhaseStepAddTexture(id, effectId, phaseId, stepId)
HYP_PostProcessing.EffectPhaseStepRemoveTexture
Removes a texture source from a step.
: Lua
id [INTEGER]: post processing id
effectId [INTEGER]: effect id
phaseId [INTEGER]: phase id
stepId [INTEGER]: step id
texId [INTEGER]: source texture id.
:
HYP_PostProcessing.EffectPhaseStepRemoveTexture(id, effectId, phaseId, stepId, texId)
HYP_PostProcessing.EffectPhaseStepTextureSetRenderTextureSource
Sets the parameters of a step source texture.
: Lua
id [INTEGER]: post processing id
effectId [INTEGER]: effect id
phaseId [INTEGER]: phase id
stepId [INTEGER]: step id
texId [INTEGER]: source texture id.
rtId [INTEGER]: source texture param: render target id.
rtType [INTEGER]: source texture param: render target texture type: COLOR (0) or DEPTH (1).
rtIndex [INTEGER]: source texture param: render target texture index. A render texture may have several texture (color, depth, ...). This index specifies a texture of a render texture object.
:
HYP_PostProcessing.EffectPhaseStepTextureSetRenderTextureSource(id, effectId, phaseId, stepId, texId, rtId, rtType, rtIndex)
|