C4 Engine Terathon Software C4 Engine API Documentation

• Utility Library

API Links
Developer Links

Shared::Retain

Defined in:  C4Shared.h
Increments an object's reference count.
Prototype

int32 Retain(void);

Description
The Retain function increments the reference count. For each call to Retain made for a particular shared object, a balancing call to Shared::Release decrements the reference count without destroying the object. The return value of the Retain function is the new reference count.
See Also

Shared::GetReferenceCount

Shared::Release