MCPcopy Create free account
hub / github.com/arrayfire/forge / fg_retain_surface

Function fg_retain_surface

src/api/c/surface.cpp:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37fg_err fg_retain_surface(fg_surface *pOut, fg_surface pIn)
38{
39 try {
40 ARG_ASSERT(1, (pIn!=0));
41
42 common::Surface* temp = new common::Surface(getSurface(pIn));
43 *pOut = getHandle(temp);
44 }
45 CATCHALL
46
47 return FG_ERR_NONE;
48}
49
50fg_err fg_release_surface(fg_surface pSurface)
51{

Callers 1

SurfaceMethod · 0.85

Calls 2

getSurfaceFunction · 0.85
getHandleFunction · 0.85

Tested by

no test coverage detected