C4 Engine Terathon Software C4 Engine API Documentation

• Resource Manager

API Links
Developer Links

Resource::Release

Defined in:  C4Resources.h
Releases a resource object.
Prototype

long Release(void);

Description
The Release function releases a resource object that was previously created with the Resource::Get function. The Release function should be called to balance every call to the Get function that does not return nullptr.

The return value is the new reference count for the resource object after is has been released.
See Also

Resource::Get