MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuTextureComputeSize

Function PiuTextureComputeSize

modules/piu/MC/piuTexture.c:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62int PiuTextureComputeSize(PiuTexture* self)
63{
64 int result = 0;
65 if ((*self)->flags & piuTextureAlpha) {
66 result += PiuTextureComputeBitmapSize(&((*self)->bits));
67 }
68 if ((*self)->flags & piuTextureColor) {
69 result += PiuTextureComputeBitmapSize(&((*self)->mask));
70 }
71 return result;
72}
73
74void PiuTextureBind(PiuTexture* self, PiuApplication* application, PiuView* view)
75{

Callers 2

PiuTextureBindFunction · 0.85
PiuTextureUnbindFunction · 0.85

Calls 1

Tested by

no test coverage detected