Skip to content

Release v1.12.18

Choose a tag to compare

@github-actions github-actions released this 20 Apr 23:06
· 56 commits to main since this release
549ba21

What's Changed

Branch: Addition
PR: #65 — Addition: New Decorator for the Main Renderer
Author: @AidenKielby
Commit: 549ba21


Pull Request Details

Addition: New Decorator for the Main Renderer

Introduced a decorator-based event registration system for the main renderer, allowing input handling to be defined declaratively and co-located with logic.

import pygame

from aiden3drenderer import Renderer3D, renderer_type, register_renderer_event

renderer = Renderer3D()

@register_renderer_event(pygame.K_c)
def change_to_raster():
    renderer.set_render_type(renderer_type.RASTERIZE)

renderer.run()

This approach removes the need for manual event polling and conditional dispatch, simplifying input handling and improving code readability. Functions can now be directly bound to specific inputs using @register_renderer_event, resulting in a cleaner and more modular event system.


Install

pip install aiden3drenderer==1.12.18

Example (Python)

from aiden3drenderer import Renderer3D

renderer = Renderer3D()
# ...

Full Changelog: v1.12.14...v1.12.18