def drawImage(self, image): global mod if image.hidden: return if mod: x, y, w, h = image.textureRect dx, dy, dw, dh = image.drawRect glmod.drawTexture(image.textureId, dx, dy, dw, dh, x, y, w, h) else: self.drawTexture(image.textureId, image.textureRect, image.drawRect)
def drawImage(self, image): global mod if image.hidden: return x, y, w, h = image.textureRect dx, dy, dw, dh = image.drawRect cx, cy = self.camera # Culling if (dx * self.zoom > self.w - cx) or (dy * self.zoom > self.h - cy) or ((dx + dw) * self.zoom < 0-cx) or ((dy + dh) * self.zoom < 0-cy): return if mod: glmod.drawTexture(image.textureId, dx, dy, dw, dh, x, y, w, h) else: self.drawTexture(image.textureId, dx, dy, dw, dh, x, y, w, h)
def drawImage(self, image): global mod if image.hidden: return x, y, w, h = image.textureRect dx, dy, dw, dh = image.drawRect cx, cy = self.camera # Culling if (dx * self.zoom > self.w - cx) or (dy * self.zoom > self.h - cy) or ( (dx + dw) * self.zoom < 0 - cx) or ( (dy + dh) * self.zoom < 0 - cy): return if mod: glmod.drawTexture(image.textureId, dx, dy, dw, dh, x, y, w, h) else: self.drawTexture(image.textureId, dx, dy, dw, dh, x, y, w, h)