AddState

This call will integrate the current state information into the model.

Model should be non-zero.

If owlInstance is given the state is only applied on the owlInstance and all its children.
If owlInstance is zero the state is applied on all owlInstances within a model.

Syntax

//   Visual Studio for Windows
public:
void __declspec(dllexport) __stdcall AddState(
            __int64             model,
            __int64             owlInstance
        );

//   Linux, OS-X and non-Visual Studio Windows solutions
public:
void AddState(
            int64_t             model,
            int64_t             owlInstance
        );    

Property model

Size: 64 bit / 8 byte (value)
The handle to the model. The model handle is static during its existance. Several models can be opened simultaniously within one session. Different models are always independent, threads are allowed to be running on different models simultaniously.

Property owlInstance

Size: 64 bit / 8 byte (value)
The handle to the specific instance in the design tree. The instance handle is static within one open model but is most probably different when the same instance is opened in another model. The instance is always exactly of one unique class.