| 17 | using forge::common::getSurface; |
| 18 | |
| 19 | fg_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 | |
| 37 | fg_err fg_retain_surface(fg_surface *pOut, fg_surface pIn) |
| 38 | { |