mini_arcade_core.engine.render.render_service¶
Render service definition.
Classes¶
Render Service. |
Module Contents¶
- class mini_arcade_core.engine.render.render_service.RenderService¶
Render Service. This service manages rendering statistics and state. :ivar last_frame_ms (float): Time taken for the last frame in milliseconds. :ivar last_stats (RenderStats): Rendering statistics from the last frame.
- last_frame_ms: float = 0.0¶
- load_texture(path: str) int¶
Load a texture from a file path and return its texture ID.
- Parameters:
path (str) – The file path to the texture image.
- Returns:
The texture ID assigned by the backend.
- Return type:
int
- draw_texture_tiled_y(tex_id: int, x: int, y: int, w: int, h: int)¶
Draw a texture repeated vertically to fill (w,h). Assumes you can resolve tex_id -> pygame.Surface, and supports scaling width.