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

Function fg_render_image

src/api/c/image.cpp:158–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158fg_err fg_render_image(const fg_window pWindow,
159 const fg_image pImage,
160 const int pX, const int pY, const int pWidth, const int pHeight)
161{
162 try {
163 ARG_ASSERT(0, (pWindow!=0));
164 ARG_ASSERT(1, (pImage!=0));
165 ARG_ASSERT(2, (pX>=0));
166 ARG_ASSERT(3, (pY>=0));
167 ARG_ASSERT(4, (pWidth>0));
168 ARG_ASSERT(5, (pHeight>0));
169
170 getImage(pImage)->render(getWindow(pWindow)->getID(),
171 pX, pY, pWidth, pHeight,
172 IDENTITY, IDENTITY);
173 }
174 CATCHALL
175
176 return FG_ERR_NONE;
177}

Callers 1

renderMethod · 0.85

Calls 4

getImageFunction · 0.85
getWindowFunction · 0.85
renderMethod · 0.45
getIDMethod · 0.45

Tested by

no test coverage detected