This module provides image loading and rendering utilities for Vertex-based applications. It bridges pygame image assets with Qt rendering systems.
⚠️ Some classes in this module are internal-only and not part of the public API. They are documented for reference and debugging purposes only.
Description:
The AssetManager is the public API for
loading and caching image assets. It ensures images are loaded once
and reused efficiently throughout the application.
assets = AssetManager()
player_img = assets.load_image("player", "assets/player.png")
background = assets.load_image("bg", "assets/bg.png")
Loads an image from disk and caches it under the given name.
name (str): Asset identifierpath (str): File pathReturns: pygame.Surface or None
Retrieves a cached image by name.
Returns: pygame.Surface or None
The following classes are not part of the public API. They are marked as deprecated and may change or be removed without notice.
Use AssetManager instead unless you are extending the
engine internals.
Description:
Converts pygame.Surface objects into Qt-compatible
textures using QImage. No OpenGL is required.
This class exists for internal rendering pipelines and engine-level integrations.
QImageConverts a pygame-backed image asset into a Qt texture.
Returns: Texture
Description:
A lightweight wrapper around QImage that exposes
width and height metadata.
image – QImage instancewidth – Image widthheight – Image height<Texture 128x128 (QImage)>
Description:
A minimal container for a pygame.Surface.
This class exists solely for legacy compatibility and internal abstractions.
surface – pygame.SurfaceQImage, not OpenGL