def onImageData(imageData): if imageData and not self.__isDying: imageID = mapTextureToTheMemory(imageData, temp=oneUse) if not oneUse: self.__texturesCache[url] = imageID callback(getTextureLinkByID(imageID)) return else: callback(None) return
def getMemoryTexturePath(cls, emblem): return mapTextureToTheMemory(emblem)
def _cbWrapper(cb, emblem): if emblem is not None: cb(mapTextureToTheMemory(emblem)) else: cb(None) return
def getMemoryTexturePath(image, temp=True): return mapTextureToTheMemory(image, temp=temp)
def _cbWrapper(cb, emblem): if emblem is not None: cb(mapTextureToTheMemory(emblem)) else: cb(None)
def getMemoryTexturePath(image): return mapTextureToTheMemory(image)
def __onImageReceive(self, url, img): if img: self.__images[url] = mapTextureToTheMemory(img, temp=False)