Clarisse 5.0 SP8 SDK
5.0.5.8.0
|
Wrapper allowing to configure a resource variation. More...
Public Member Functions | |
~ResourceVariation () | |
Destructor. | |
void | lock () |
void | unlock () |
Must be called at the end when the variation is configured. | |
void | add_connection (ResourceID resource_id, CoreBasicArray< ResourceID > deps, CoreBasicArray< OfAttrPtrDirtiness > attributes, const GeometryAttributesOverride &attributes_override, const CoreBasicArray< unsigned int > &variation_keys) |
void | add_resource_custom_data (ResourceID id, OfResourceCustomData *custom_data) |
Attach a data to a custom resource of the variation. | |
Friends | |
class | ModuleObject |
Wrapper allowing to configure a resource variation.
void ModuleObject::ResourceVariation::add_connection | ( | ResourceID | resource_id, |
CoreBasicArray< ResourceID > | deps, | ||
CoreBasicArray< OfAttrPtrDirtiness > | attributes, | ||
const GeometryAttributesOverride & | attributes_override, | ||
const CoreBasicArray< unsigned int > & | variation_keys | ||
) |
Create a new resource connection on the variation
resource_id | The ID of the resource |
deps | The resource dependencies |
attributes | The attribute dependencies |
attributes_override | attributes dependencies with their overridden values (responsible of the override of the resource) |
variation_key | hash keys of the variations dependencies for this new resource |
void ModuleObject::ResourceVariation::lock | ( | ) |
Must be called to lock the variation before configuring it It's highly recommended to lock it just after creating the wrapper