Skip to content

Scene object rework #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Scene object rework #20

wants to merge 5 commits into from

Conversation

tesselslate
Copy link
Owner

No description provided.

This has long been near-useless, since it was initially planned to be
used for creating more elaborate decorations purely out of various
colored rectangles (before OpenGL support), and only recently regained
relevance with Char's PR to allow background images.

Unfortunately, however, remote_buffer is not really suited for large
allocations (like images). So I'm taking the opportunity to remove it
alongside making some improvements to the OpenGL code to allow for
changing the Z-order of scene objects.
Some compositors implement additional optimizations when rendering
single pixel buffers, so they should be used when possible.
This new method of handling scene objects (mirrors, images, text) will
allow for objects to be reordered on the Z axis arbitrarily.

Currently, Z ordering is just the order in which scene objects are
created, which is a breaking change (previously it was images in the
order of creation, then mirrors, then text) but I will try to replicate
the old behavior by default at least somewhat.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant