![]() |
Xors3d Engine
|
Functions | |
| void | xClearPostEffectConstants (PostEffect *postEffect) |
| Delete all user defined constants from effect. | |
| void | xDeletePostEffectConstant (PostEffect *postEffect, const char *name) |
| Delete user defined constant from effect. | |
| void | xFreePostEffect (PostEffect *postEffect) |
| Frees loaded post-effect. | |
| PostEffect * | xLoadPostEffect (const char *path) |
| Loads new post-effect from file and returns it's handle. | |
| void | xRenderPostEffects () |
| Renders all post-effects sequence. | |
| void | xSetPostEffect (int index, PostEffect *postEffect, const char *technique="MainTechnique") |
| Adds post-effect in sequence to post-processing. | |
| void | xSetPostEffectBool (PostEffect *postEffect, const char *name, bool value) |
| Adds user defined boolean constant to effect. | |
| void | xSetPostEffectFloat (PostEffect *postEffect, const char *name, float value) |
| Adds user defined float constant to effect. | |
| void | xSetPostEffectInt (PostEffect *postEffect, const char *name, int value) |
| Adds user defined integer constant to effect. | |
| void | xSetPostEffectTexture (PostEffect *postEffect, const char *name, Texture *texture, int frame=0) |
| Adds user defined texture constant to effect. | |
| void | xSetPostEffectVector (PostEffect *postEffect, const char *name, float x, float y, float z, float w=1.0f) |
| Adds user defined vector constant to effect. | |
| PostEffect* xLoadPostEffect | ( | const char * | path | ) |
Loads new post-effect from file and returns it's handle.
| path | Path to effect file |
| void xFreePostEffect | ( | PostEffect * | postEffect | ) |
Frees loaded post-effect.
This commands automaticaly delete post-effect from effects sequence
| postEffect | Post-effect handle |
| void xSetPostEffect | ( | int | index, |
| PostEffect * | postEffect, | ||
| const char * | technique = "MainTechnique" |
||
| ) |
Adds post-effect in sequence to post-processing.
Post-effects applies in index order
| index | Post-effect index |
| postEffect | Post-effect handle |
| technique | Post-effect technique to apply |
| void xRenderPostEffects | ( | ) |
Renders all post-effects sequence.
| void xSetPostEffectInt | ( | PostEffect * | postEffect, |
| const char * | name, | ||
| int | value | ||
| ) |
Adds user defined integer constant to effect.
| postEffect | Post-effect handle |
| name | Post-effect constant name |
| value | Constant value |
| void xSetPostEffectFloat | ( | PostEffect * | postEffect, |
| const char * | name, | ||
| float | value | ||
| ) |
Adds user defined float constant to effect.
| postEffect | Post-effect handle |
| name | Post-effect constant name |
| value | Constant value |
| void xSetPostEffectBool | ( | PostEffect * | postEffect, |
| const char * | name, | ||
| bool | value | ||
| ) |
Adds user defined boolean constant to effect.
| postEffect | Post-effect handle |
| name | Post-effect constant name |
| value | Constant value |
| void xSetPostEffectVector | ( | PostEffect * | postEffect, |
| const char * | name, | ||
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | w = 1.0f |
||
| ) |
Adds user defined vector constant to effect.
| postEffect | Post-effect handle |
| name | Post-effect constant name |
| x | Vector's x-component |
| y | Vector's y-component |
| z | Vector's z-component |
| w | Vector's w-component |
| void xSetPostEffectTexture | ( | PostEffect * | postEffect, |
| const char * | name, | ||
| Texture * | texture, | ||
| int | frame = 0 |
||
| ) |
Adds user defined texture constant to effect.
| postEffect | Post-effect handle |
| name | Post-effect constant name |
| texture | Texture handle |
| frame | Texture frame |
| void xDeletePostEffectConstant | ( | PostEffect * | postEffect, |
| const char * | name | ||
| ) |
Delete user defined constant from effect.
| postEffect | Post-effect handle |
| name | Post-effect constant name |
| void xClearPostEffectConstants | ( | PostEffect * | postEffect | ) |
Delete all user defined constants from effect.
| postEffect | Post-effect handle |