Returns the name of the material or texture.
Syntax
cstring ST_Name(texture texture);
cstring ST_Name(material material);Parameters
Parameter Name | Description |
texture | The texture object. |
material | The material object. |
Description
This function returns the name of a material or texture object. You must call the ST_SetName function to configure a name before you can call this function to query the name.
Examples
Example 1:
SELECT ST_Name(ST_SetName(the_material, 'material_name')) FROM t_table ------------------- material_nameExample 2:
SELECT ST_Name(ST_SetName(the_texture, 't_name')) FROM t_table ------------------- t_name