| 156 | } |
| 157 | |
| 158 | fg_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 | } |