pull/35048/head
Cameron Clough 4 days ago
parent 6e5f12bc47
commit 89f6d0f1f9
  1. 3
      system/ui/lib/application.py

@ -53,7 +53,8 @@ class GuiApplication:
def load_texture_from_image(self, file_name: str, width: int, height: int, alpha_premultiply = False):
"""Load and resize a texture, storing it for later automatic unloading."""
image = rl.load_image(file_name)
if alpha_premultiply: rl.image_alpha_premultiply(image)
if alpha_premultiply:
rl.image_alpha_premultiply(image)
rl.image_resize(image, width, height)
texture = rl.load_texture_from_image(image)
# Set texture filtering to smooth the result

Loading…
Cancel
Save