| 72 | } |
| 73 | |
| 74 | void PiuTextureBind(PiuTexture* self, PiuApplication* application, PiuView* view) |
| 75 | { |
| 76 | if ((*self)->usage == 0) { |
| 77 | piuTextureSize += PiuTextureComputeSize(self); |
| 78 | #ifdef mxInstrument |
| 79 | modInstrumentationMax(PiuCommandListUsed, piuTextureSize); |
| 80 | #endif |
| 81 | if ((*self)->flags & piuTextureAlpha) { |
| 82 | PocoBitmapAdd((*view)->poco, &((*self)->mask), PiuViewReceiver, view); |
| 83 | } |
| 84 | if ((*self)->flags & piuTextureColor) { |
| 85 | PocoBitmapAdd((*view)->poco, &((*self)->bits), PiuViewReceiver, view); |
| 86 | } |
| 87 | } |
| 88 | (*self)->usage++; |
| 89 | } |
| 90 | |
| 91 | void PiuTextureUnbind(PiuTexture* self, PiuApplication* application, PiuView* view) |
| 92 | { |
no test coverage detected