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

Function fg_create_surface

src/api/c/surface.cpp:19–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17using forge::common::getSurface;
18
19fg_err fg_create_surface(fg_surface *pSurface,
20 const unsigned pXPoints, const unsigned pYPoints,
21 const fg_dtype pType,
22 const fg_plot_type pPlotType,
23 const fg_marker_type pMarkerType)
24{
25 try {
26 ARG_ASSERT(1, (pXPoints>0));
27 ARG_ASSERT(2, (pYPoints>0));
28
29 *pSurface = getHandle(new common::Surface(pXPoints, pYPoints, (forge::dtype)pType,
30 pPlotType, pMarkerType));
31 }
32 CATCHALL
33
34 return FG_ERR_NONE;
35}
36
37fg_err fg_retain_surface(fg_surface *pOut, fg_surface pIn)
38{

Callers 1

SurfaceMethod · 0.85

Calls 1

getHandleFunction · 0.85

Tested by

no test coverage detected