| 272 | } |
| 273 | |
| 274 | void PiuPort_drawTexture(xsMachine* the) |
| 275 | { |
| 276 | PiuPort* self = PIU(Port, xsThis); |
| 277 | PiuView* view = (*self)->view; |
| 278 | PiuTexture* texture; |
| 279 | PiuColorRecord color; |
| 280 | PiuCoordinate x, y, sx, sy; |
| 281 | PiuDimension sw, sh; |
| 282 | if (!view) xsUnknownError("out of sequence"); |
| 283 | texture = PIU(Texture, xsArg(0)); |
| 284 | PiuColorDictionary(the, &xsArg(1), &color); |
| 285 | x = xsToPiuCoordinate(xsArg(2)); |
| 286 | y = xsToPiuCoordinate(xsArg(3)); |
| 287 | sx = xsToPiuCoordinate(xsArg(4)); |
| 288 | sy = xsToPiuCoordinate(xsArg(5)); |
| 289 | sw = xsToPiuDimension(xsArg(6)); |
| 290 | sh = xsToPiuDimension(xsArg(7)); |
| 291 | PiuViewPushColorFilter(view, &color); |
| 292 | PiuViewDrawTexture(view, texture, x, y, sx, sy, sw, sh); |
| 293 | PiuViewPopColorFilter(view); |
| 294 | } |
| 295 | |
| 296 | void PiuPort_fillColor(xsMachine* the) |
| 297 | { |
nothing calls this directly
no test coverage detected