void demoUnload() { xlImgDeleteTexture(); xlImgUnload(); xlBindImage(img[1]); xlImgUnload(); xlBindImage(img[2]); xlImgUnload(); xlDeleteImages(3, img); }
void xlMatDeleteImages(void) { XLmaterial *bind = xlGetMaterial(); XLuint i; for(i = 0; i < bind->header.properties; i++) xlImgUnload(); xlDeleteImages(bind->header.properties, bind->runtime.images); xlFree(bind->runtime.images); }