MCPcopy Create free account
hub / github.com/carbonengine/trinity / OpenSharedTexture

Function OpenSharedTexture

trinity/Resources/TriTextureRes_Blue.cpp:323–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321namespace
322{
323ALResult OpenSharedTexture( uint32_t handle, TriTextureRes*& result )
324{
325 result = nullptr;
326
327 TriTextureResPtr ptr;
328 ptr.CreateInstance();
329 CR_RETURN_HR( ptr->OpenShared( handle ) );
330 result = ptr.Detach();
331 return ALResult( S_OK );
332}
333}
334
335MAP_FUNCTION_AND_WRAP(

Callers

nothing calls this directly

Calls 3

CreateInstanceMethod · 0.80
DetachMethod · 0.80
OpenSharedMethod · 0.45

Tested by

no test coverage detected