| 678 | |
| 679 | |
| 680 | void PiuViewFillColor(PiuView* self, PiuCoordinate x, PiuCoordinate y, PiuDimension w, PiuDimension h) |
| 681 | { |
| 682 | Poco poco = (*self)->poco; |
| 683 | if ((w <= 0) || (h <= 0)) return; |
| 684 | x += poco->xOrigin; |
| 685 | y += poco->yOrigin; |
| 686 | #ifdef piuGPU |
| 687 | PocoRectangleFill(poco, (*self)->pixel, (*self)->blend, x, y, w, h); |
| 688 | #else |
| 689 | { |
| 690 | PIUQueueCommand(FillColorCommand); |
| 691 | command->color = (*self)->pixel; |
| 692 | command->blend = (*self)->blend; |
| 693 | command->x = x; |
| 694 | command->y = y; |
| 695 | command->w = w; |
| 696 | command->h = h; |
| 697 | } |
| 698 | #endif |
| 699 | } |
| 700 | |
| 701 | void PiuViewFillTexture(PiuView* self, PiuTexture* texture, PiuCoordinate x, PiuCoordinate y, PiuDimension w, PiuDimension h, PiuCoordinate sx, PiuCoordinate sy, PiuDimension sw, PiuDimension sh) |
| 702 | { |
no test coverage detected