Пример #1
0
 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            
Пример #2
0
 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
Пример #3
0
 def getImageSize(self, filename):
     handle = self.images.get(filename)
     if not handle:
         handle = PyUnseen.createTexture(filename)
     return PyUnseen.getTextureSize(handle)
Пример #4
0
 def getImageSize(self, filename):
     handle = self.images.get(filename)
     if not handle:
         handle = PyUnseen.createTexture(filename)
     return PyUnseen.getTextureSize(handle)