def loadImage(self, filename, label = None): if label: handle = PyUnseen.createTexture(filename) self.images[label] = handle else: handle = PyUnseen.createTexture(filename) self.images[filename] = handle
def loadImage(self, filename, label=None): if label: handle = PyUnseen.createTexture(filename) self.images[label] = handle else: handle = PyUnseen.createTexture(filename) self.images[filename] = handle
def getImageSize(self, filename): handle = self.images.get(filename) if not handle: handle = PyUnseen.createTexture(filename) return PyUnseen.getTextureSize(handle)