MCPcopy Create free account
hub / github.com/defold/defold / ResourceTypeReset

Function ResourceTypeReset

engine/resource/src/resource_type.cpp:38–42  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

36
37/////////////////////////////////////////////////////////////////////
38void ResourceTypeReset(HResourceType type)
39{
40 memset(type, 0, sizeof(ResourceType));
41 type->m_PreloadSize = RESOURCE_INVALID_PRELOAD_SIZE;
42}
43
44void ResourceTypeSetContext(HResourceType type, void* ctx)
45{

Callers 1

AllocateResourceTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected