Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Friends | List of all members
ModuleObject::ResourceVariation Class Reference

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
 

Detailed Description

Wrapper allowing to configure a resource variation.

Member Function Documentation

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

Parameters
resource_idThe ID of the resource
depsThe resource dependencies
attributesThe attribute dependencies
attributes_overrideattributes dependencies with their overridden values (responsible of the override of the resource)
variation_keyhash 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