![]() |
Xors3d Engine
|
Functions | |
void | xClearEffectConstants (Entity *entity, int layer=-1) |
Clears all passed constansts. | |
void | xClearFXConstants (Effect *effect) |
Deletes all the global values of the constants from an effect. | |
void | xClearSurfaceConstants (Surface *surface, int layer=-1) |
Clears all passed constansts of surface. | |
void | xDeleteEffectConstant (Entity *entity, const char *name, int layer=-1) |
Deletes a specified effect constant. | |
void | xDeleteFXConstant (Effect *effect, const char *name) |
Deletes a global value of a constant from an effect. | |
void | xDeleteSurfaceConstant (Surface *surface, const char *name, int layer=-1) |
Deletes a specified surface's effect constant. | |
void | xFreeEffect (Effect *effect) |
Frees up an effect. | |
int | xGetEntityShaderLayer (Entity *entity) |
Returns an active shader layer of an entity. | |
int | xGetSurfaceShaderLayer (Surface *surface) |
Returns an active shader layer of a surface. | |
Effect * | xLoadFXFile (const char *path) |
Loads an effect from file. | |
void | xSetBonesArrayName (Entity *entity, const char *arrayName, int layer=-1) |
Sets a name of shader constant to pass bones for skinning computing. | |
void | xSetEffectBool (Entity *entity, const char *name, bool value, int layer=-1) |
Sets a boolean constant value for entity shaders. | |
void | xSetEffectEntityTexture (Entity *entity, const char *name, int index=0, int layer=-1) |
Sets shader texture constant by entity's texture. | |
void | xSetEffectFloat (Entity *entity, const char *name, float value, int layer=-1) |
Sets a floating constant value for entity shaders. | |
void | xSetEffectFloatArray (Entity *entity, const char *name, float *value, int count, int layer=-1) |
Sets a floating array constant for entity shaders. | |
void | xSetEffectInt (Entity *entity, const char *name, int value, int layer=-1) |
Sets an integer constant value for entity shaders. | |
void | xSetEffectIntArray (Entity *entity, const char *name, int *value, int count, int layer=-1) |
Sets an integer array constant for entity shaders. | |
void | xSetEffectMatrix (Entity *entity, const char *name, float *matrix, int layer=-1) |
Sets a matrix constant value for entity shaders. | |
void | xSetEffectMatrixArray (Entity *entity, const char *name, Matrix44 *value, int count, int layer=-1) |
Sets a matrices array constant for shaders. | |
void | xSetEffectMatrixSemantic (Entity *entity, const char *name, int value, int layer=-1) |
Sets a matrix constant for entity shaders by matrix semantic. | |
void | xSetEffectTechnique (Entity *entity, const char *name, int layer=-1) |
Sets active effect rendering technique. | |
void | xSetEffectTexture (Entity *entity, const char *name, Texture *texture, int frame=0, int layer=-1, int isRecursive=1) |
Sets a texture constant for entity shader. | |
void | xSetEffectVector (Entity *entity, const char *name, float x, float y, float z, float w=0.0f, int layer=-1) |
Sets a vector constant for entity shader. | |
void | xSetEffectVectorArray (Entity *entity, const char *name, Vector4 *value, int count, int layer=-1) |
Sets a vectors array constant for entity shaders. | |
void | xSetEntityEffect (Entity *entity, Effect *effect, int index=-1) |
Assings shader effect to entity. | |
void | xSetEntityShaderLayer (Entity *entity, int layer) |
Sets an active shader layer for an entity. | |
void | xSetFXBool (Effect *effect, const char *name, bool value) |
Sets a global value of a boolean constant for an effect. | |
void | xSetFXEntityMatrix (Effect *effect, const char *name, Matrix44 *matrix) |
Sets a global value of a matrix constant for an effect. | |
void | xSetFXFloat (Effect *effect, const char *name, float value) |
Sets a global value of a floating-point constant for an effect. | |
void | xSetFXFloatArray (Effect *effect, const char *name, float *value, int count) |
Sets a global value of a floating-point array constant for an effect. | |
void | xSetFXInt (Effect *effect, const char *name, int value) |
Sets a global value of a integer constant for an effect. | |
void | xSetFXIntArray (Effect *effect, const char *name, int *value, int count) |
Sets a global value of an integer array constant for an effect. | |
void | xSetFXMatrixArray (Effect *effect, const char *name, Matrix44 *value, int count) |
Sets a global value of a matrices array constant for an effect. | |
void | xSetFXMatrixSemantic (Effect *effect, const char *name, int value) |
Sets an global value of a matrix semantic constant for an effect. | |
void | xSetFXTechnique (Effect *effect, const char *name) |
Sets a global technique name for effect. | |
void | xSetFXTexture (Effect *effect, const char *name, Texture *texture, int frame=0) |
Sets a global value of a texture constant for an effect. | |
void | xSetFXVector (Effect *effect, const char *name, float x, float y, float z, float w=0.0f) |
Sets a global value of a vector constant for an effect. | |
void | xSetFXVectorArray (Effect *effect, const char *name, Vector4 *value, int count) |
Sets a global value of a vectors array constant for an effect. | |
void | xSetSurfaceEffect (Surface *surface, Effect *effect, int index=-1) |
Sets shader effect for surface. | |
void | xSetSurfaceShaderLayer (Surface *surface, int layer) |
Sets an active shader layer for a surface. | |
void | xSurfaceBonesArrayName (Surface *surface, const char *arrayName, int layer=-1) |
Sets shader constant name for passing bones for skinning computing. | |
void | xSurfaceEffectBool (Surface *surface, const char *name, bool value, int layer=-1) |
Sets a boolean constant value for surface shaders. | |
void | xSurfaceEffectFloat (Surface *surface, const char *name, float value, int layer=-1) |
Sets a floating constant value for surface shaders. | |
void | xSurfaceEffectFloatArray (Surface *surface, const char *name, float *value, int count, int layer=-1) |
Sets a floating array constant for surface shaders. | |
void | xSurfaceEffectInt (Surface *surface, const char *name, int value, int layer=-1) |
Sets shaders integer constant value. | |
void | xSurfaceEffectIntArray (Surface *surface, const char *name, int *value, int count, int layer=-1) |
Sets an integer array constant for surface shaders. | |
void | xSurfaceEffectMatrix (Surface *surface, const char *name, float *matrix, int layer=-1) |
Sets a matrix constant value for surface shaders. | |
void | xSurfaceEffectMatrixArray (Surface *surface, const char *name, Matrix44 *value, int count, int layer=-1) |
Sets a matrices array constant for surface shaders. | |
void | xSurfaceEffectMatrixSemantic (Surface *surface, const char *name, int value, int layer=-1) |
Sets a matrix constant for surface shaders by matrix semantic. | |
void | xSurfaceEffectTexture (Surface *surface, const char *name, Texture *texture, int frame=0, int layer=-1) |
Sets a texture constant for surface shader. | |
void | xSurfaceEffectVector (Surface *surface, const char *name, float x, float y, float z, float w=0.0f, int layer=-1) |
Sets a vector constant for surface shader. | |
void | xSurfaceEffectVectorArray (Surface *surface, const char *name, Vector4 *value, int count, int layer=-1) |
Sets a vectors array constant for surface shaders. | |
void | xSurfaceTechnique (Surface *surface, const char *name, int layer=-1) |
Sets active surface's effect rendering technique. | |
int | xValidateEffectTechnique (Effect *effect, const char *name) |
Returns true if hardware supports specified technique. |
Effect* xLoadFXFile | ( | const char * | path | ) |
Loads an effect from file.
Xors3D supports DirectX effects files (it uses HLSL as shaders language), it's more powerful and easy to use than regular shaders, you can change render states manually, make multi-pass effects and much more.
path | String containing filename of effect file |
void xFreeEffect | ( | Effect * | effect | ) |
Frees up an effect.
effect | Effect handle |
void xSetEntityEffect | ( | Entity * | entity, |
Effect * | effect, | ||
int | index = -1 |
||
) |
Assings shader effect to entity.
entity | Entity handle |
effect | Effect handle |
index | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSetSurfaceEffect | ( | Surface * | surface, |
Effect * | effect, | ||
int | index = -1 |
||
) |
Sets shader effect for surface.
surface | Surafce handle |
effect | Effect handle |
index | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSetBonesArrayName | ( | Entity * | entity, |
const char * | arrayName, | ||
int | layer = -1 |
||
) |
Sets a name of shader constant to pass bones for skinning computing.
If you use hardware skinning, you must pass bones transformation matrices in shader and transform vertices in it.
entity | Entity handle |
arrayName | Name of shader constant for passing bones matrices |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSurfaceBonesArrayName | ( | Surface * | surface, |
const char * | arrayName, | ||
int | layer = -1 |
||
) |
Sets shader constant name for passing bones for skinning computing.
If you use hadrware skinning, you should pass bone transformation matrices to shader and transform vertices in it. This command specify constant name for each surface in mesh separatly.
surface | Surface handle |
arrayName | Name of shader constant for passing bone matrices |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSetEffectInt | ( | Entity * | entity, |
const char * | name, | ||
int | value, | ||
int | layer = -1 |
||
) |
Sets an integer constant value for entity shaders.
entity | Entity handle |
name | Constant name |
value | Constant value |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSurfaceEffectInt | ( | Surface * | surface, |
const char * | name, | ||
int | value, | ||
int | layer = -1 |
||
) |
Sets shaders integer constant value.
surface | Surface handle |
name | Constant name |
value | Constant value |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSetEffectFloat | ( | Entity * | entity, |
const char * | name, | ||
float | value, | ||
int | layer = -1 |
||
) |
Sets a floating constant value for entity shaders.
entity | Entity handle |
name | Constant name |
value | Constant value |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSurfaceEffectFloat | ( | Surface * | surface, |
const char * | name, | ||
float | value, | ||
int | layer = -1 |
||
) |
Sets a floating constant value for surface shaders.
surface | Surface handle |
name | Constant name |
value | Constant value |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSetEffectBool | ( | Entity * | entity, |
const char * | name, | ||
bool | value, | ||
int | layer = -1 |
||
) |
Sets a boolean constant value for entity shaders.
entity | Entity handle |
name | Constant name |
value | Constant value |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSurfaceEffectBool | ( | Surface * | surface, |
const char * | name, | ||
bool | value, | ||
int | layer = -1 |
||
) |
Sets a boolean constant value for surface shaders.
surface | Surface handle |
name | Constant name |
value | Constant value |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSetEffectVector | ( | Entity * | entity, |
const char * | name, | ||
float | x, | ||
float | y, | ||
float | z, | ||
float | w = 0.0f , |
||
int | layer = -1 |
||
) |
Sets a vector constant for entity shader.
entity | Entity handle |
name | Constant name |
x | Vertor's x component |
y | Vertor's y component |
z | Vertor's z component |
w | Vertor's w component |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSurfaceEffectVector | ( | Surface * | surface, |
const char * | name, | ||
float | x, | ||
float | y, | ||
float | z, | ||
float | w = 0.0f , |
||
int | layer = -1 |
||
) |
Sets a vector constant for surface shader.
surface | Surface handle |
name | Constant name |
x | Vertor's x component |
y | Vertor's y component |
z | Vertor's z component |
w | Vertor's w component |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSetEffectVectorArray | ( | Entity * | entity, |
const char * | name, | ||
Vector4 * | value, | ||
int | count, | ||
int | layer = -1 |
||
) |
Sets a vectors array constant for entity shaders.
entity | Entity handle |
name | Constant name |
value | Pointer to vectors array |
count | Number of elements in array |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSurfaceEffectVectorArray | ( | Surface * | surface, |
const char * | name, | ||
Vector4 * | value, | ||
int | count, | ||
int | layer = -1 |
||
) |
Sets a vectors array constant for surface shaders.
surface | Surface handle |
name | Constant name |
value | Pointer to vectors array |
count | Number of elements in array |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSurfaceEffectMatrixArray | ( | Surface * | surface, |
const char * | name, | ||
Matrix44 * | value, | ||
int | count, | ||
int | layer = -1 |
||
) |
Sets a matrices array constant for surface shaders.
surface | Surface handle |
name | Constant name |
value | Pointer to matrices array |
count | Number of elements in array |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSurfaceEffectFloatArray | ( | Surface * | surface, |
const char * | name, | ||
float * | value, | ||
int | count, | ||
int | layer = -1 |
||
) |
Sets a floating array constant for surface shaders.
surface | Surface handle |
name | Constant name |
value | Pointer to floating array |
count | Number of elements in array |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSurfaceEffectIntArray | ( | Surface * | surface, |
const char * | name, | ||
int * | value, | ||
int | count, | ||
int | layer = -1 |
||
) |
Sets an integer array constant for surface shaders.
surface | Surface handle |
name | Constant name |
value | Pointer to integer array |
count | Number of elements in array |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSetEffectMatrixArray | ( | Entity * | entity, |
const char * | name, | ||
Matrix44 * | value, | ||
int | count, | ||
int | layer = -1 |
||
) |
Sets a matrices array constant for shaders.
entity | Entity handle |
name | Constant name |
value | Pointer to matrices array |
count | Number of elements in array |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSetEffectFloatArray | ( | Entity * | entity, |
const char * | name, | ||
float * | value, | ||
int | count, | ||
int | layer = -1 |
||
) |
Sets a floating array constant for entity shaders.
entity | Entity handle |
name | Constant name |
value | Pointer to floating array |
count | Number of elements in array |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSetEffectIntArray | ( | Entity * | entity, |
const char * | name, | ||
int * | value, | ||
int | count, | ||
int | layer = -1 |
||
) |
Sets an integer array constant for entity shaders.
entity | Entity handle |
name | Constant name |
value | Pointer to integer array |
count | Number of elements in array |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSetEffectMatrix | ( | Entity * | entity, |
const char * | name, | ||
float * | matrix, | ||
int | layer = -1 |
||
) |
Sets a matrix constant value for entity shaders.
Use with pointer to the matrix returned by xGetProjectionMatrix(), xGetViewMatrix(), xGetViewProjMatrix() and xGetEntityMatrix().
entity | Entity handle |
name | Constant name |
matrix | Pointer to matrix |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSurfaceEffectMatrix | ( | Surface * | surface, |
const char * | name, | ||
float * | matrix, | ||
int | layer = -1 |
||
) |
Sets a matrix constant value for surface shaders.
Use with pointer to the matrix returned by xGetProjectionMatrix(), xGetViewMatrix(), xGetViewProjMatrix() and xGetEntityMatrix().
surface | Surface handle |
name | Constant name |
matrix | Pointer to matrix |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSetEffectEntityTexture | ( | Entity * | entity, |
const char * | name, | ||
int | index = 0 , |
||
int | layer = -1 |
||
) |
Sets shader texture constant by entity's texture.
You can use it for automatic passing textures loaded with mesh or applied by xEntityTexture() to a shader.
entity | Entity handle |
name | Constant name |
index | Textre layer index. Must be in range 0-7 |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSetEffectTexture | ( | Entity * | entity, |
const char * | name, | ||
Texture * | texture, | ||
int | frame = 0 , |
||
int | layer = -1 , |
||
int | isRecursive = 1 |
||
) |
Sets a texture constant for entity shader.
entity | Entity handle |
name | Constant name |
texture | Texture handle |
frame | Texture frame |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
isRecursive | If 1 (true) then entity's children will receive the texture too. |
void xSurfaceEffectTexture | ( | Surface * | surface, |
const char * | name, | ||
Texture * | texture, | ||
int | frame = 0 , |
||
int | layer = -1 |
||
) |
Sets a texture constant for surface shader.
surface | Surface handle |
name | Constant name |
texture | Texture handle |
frame | Texture frame |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSurfaceEffectMatrixSemantic | ( | Surface * | surface, |
const char * | name, | ||
int | value, | ||
int | layer = -1 |
||
) |
Sets a matrix constant for surface shaders by matrix semantic.
See 'Matrix semantics' for more infromation.
surface | Surface handle |
name | Constant name |
value | Matrix semantic |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSetEffectMatrixSemantic | ( | Entity * | entity, |
const char * | name, | ||
int | value, | ||
int | layer = -1 |
||
) |
Sets a matrix constant for entity shaders by matrix semantic.
See 'Matrix semantics' for more infromation.
entity | Entity handle |
name | Constant name |
value | Matrix semantic |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xDeleteSurfaceConstant | ( | Surface * | surface, |
const char * | name, | ||
int | layer = -1 |
||
) |
Deletes a specified surface's effect constant.
surface | Surface handle |
name | Constant name |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xDeleteEffectConstant | ( | Entity * | entity, |
const char * | name, | ||
int | layer = -1 |
||
) |
Deletes a specified effect constant.
entity | Entity handle |
name | Constant name |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xClearSurfaceConstants | ( | Surface * | surface, |
int | layer = -1 |
||
) |
Clears all passed constansts of surface.
This function deletes all constants passed into effect (by functions like xSurfaceEffectInt(), xSurfaceEffectTexture() etc).
surface | Surface handle |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xClearEffectConstants | ( | Entity * | entity, |
int | layer = -1 |
||
) |
Clears all passed constansts.
This function deletes all constants passed into effect (by functions like xSetEffectInt(), xSetEffectTexture() etc).
entity | Entity handle |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSetEffectTechnique | ( | Entity * | entity, |
const char * | name, | ||
int | layer = -1 |
||
) |
Sets active effect rendering technique.
You may check support of technique by hardware using xValidateEffectTechnique()
entity | Entity handle |
name | Technique name |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
void xSurfaceTechnique | ( | Surface * | surface, |
const char * | name, | ||
int | layer = -1 |
||
) |
Sets active surface's effect rendering technique.
You may check support technique on hadware by xValidateEffectTechnique()
surface | Surface handle |
name | Technique name |
layer | Index of the effect layer in range [0; 7]. If -1 is passed - active layer will be used (see xSetShaderLayer()) |
int xValidateEffectTechnique | ( | Effect * | effect, |
const char * | name | ||
) |
Returns true if hardware supports specified technique.
effect | Effect handle |
name | Technique name |
void xSetEntityShaderLayer | ( | Entity * | entity, |
int | layer | ||
) |
Sets an active shader layer for an entity.
This value overrides a global shader layer. If -1 is passed - a global value will be used
int xGetEntityShaderLayer | ( | Entity * | entity | ) |
Returns an active shader layer of an entity.
void xSetSurfaceShaderLayer | ( | Surface * | surface, |
int | layer | ||
) |
Sets an active shader layer for a surface.
This value overrides a global shader layer. If -1 is passed - a global value will be used
int xGetSurfaceShaderLayer | ( | Surface * | surface | ) |
Returns an active shader layer of a surface.
void xSetFXInt | ( | Effect * | effect, |
const char * | name, | ||
int | value | ||
) |
Sets a global value of a integer constant for an effect.
This value will override all mesh or surface constants with same name.
effect | Effect handle |
name | Constant name |
value | Constant value |
void xSetFXFloat | ( | Effect * | effect, |
const char * | name, | ||
float | value | ||
) |
Sets a global value of a floating-point constant for an effect.
This value will override all mesh or surface constants with same name.
effect | Effect handle |
name | Constant name |
value | Constant value |
void xSetFXBool | ( | Effect * | effect, |
const char * | name, | ||
bool | value | ||
) |
Sets a global value of a boolean constant for an effect.
This value will override all mesh or surface constants with same name.
effect | Effect handle |
name | Constant name |
value | Constant value |
void xSetFXVector | ( | Effect * | effect, |
const char * | name, | ||
float | x, | ||
float | y, | ||
float | z, | ||
float | w = 0.0f |
||
) |
Sets a global value of a vector constant for an effect.
This value will override all mesh or surface constants with same name.
effect | Effect handle |
name | Constant name |
x | X-component of the vector |
y | Y-component of the vector |
z | Z-component of the vector |
w | W-component of the vector |
void xSetFXVectorArray | ( | Effect * | effect, |
const char * | name, | ||
Vector4 * | value, | ||
int | count | ||
) |
Sets a global value of a vectors array constant for an effect.
This value will override all mesh or surface constants with same name.
effect | Effect handle |
name | Constant name |
value | Constant value |
count | Array size |
void xSetFXMatrixArray | ( | Effect * | effect, |
const char * | name, | ||
Matrix44 * | value, | ||
int | count | ||
) |
Sets a global value of a matrices array constant for an effect.
This value will override all mesh or surface constants with same name.
effect | Effect handle |
name | Constant name |
value | Constant value |
count | Array size |
void xSetFXFloatArray | ( | Effect * | effect, |
const char * | name, | ||
float * | value, | ||
int | count | ||
) |
Sets a global value of a floating-point array constant for an effect.
This value will override all mesh or surface constants with same name.
effect | Effect handle |
name | Constant name |
value | Constant value |
count | Array size |
void xSetFXIntArray | ( | Effect * | effect, |
const char * | name, | ||
int * | value, | ||
int | count | ||
) |
Sets a global value of an integer array constant for an effect.
This value will override all mesh or surface constants with same name.
effect | Effect handle |
name | Constant name |
value | Constant value |
count | Array size |
void xSetFXEntityMatrix | ( | Effect * | effect, |
const char * | name, | ||
Matrix44 * | matrix | ||
) |
Sets a global value of a matrix constant for an effect.
This value will override all mesh or surface constants with same name.
effect | Effect handle |
name | Constant name |
matrix | Matrix value |
void xSetFXTexture | ( | Effect * | effect, |
const char * | name, | ||
Texture * | texture, | ||
int | frame = 0 |
||
) |
Sets a global value of a texture constant for an effect.
This value will override all mesh or surface constants with same name.
effect | Effect handle |
name | Constant name |
texture | Texture handle |
frame | Texture's frame index |
void xSetFXMatrixSemantic | ( | Effect * | effect, |
const char * | name, | ||
int | value | ||
) |
Sets an global value of a matrix semantic constant for an effect.
This value will override all mesh or surface constants with same name.
effect | Effect handle |
name | Constant name |
value | Semantic value |
void xDeleteFXConstant | ( | Effect * | effect, |
const char * | name | ||
) |
Deletes a global value of a constant from an effect.
effect | Effect handle |
name | Constant name |
void xClearFXConstants | ( | Effect * | effect | ) |
Deletes all the global values of the constants from an effect.
effect | Effect handle |
void xSetFXTechnique | ( | Effect * | effect, |
const char * | name | ||
) |
Sets a global technique name for effect.
This value will override all mesh or surface techniques.
effect | Effect handle |
name | Technique name |