Grand palette / overlay unification?
We could probably figure out a way to further unify pl_frame
and pl_overlay
into the same concept, especially by introducing support for palette-style formats (which is, essentially, what PL_OVERLAY_MONOCHROME
is a shitty approximation of.
Some considerations:
- Do we just nuke overlays entirely? Doing so makes sense for
target
overlays, since they can be approximated by just usingpl_render_image
on a separate renderer instance. But for image overlays, we lose things like (in the future) proper frame mixing. - Do we allow
pl_render_image
to accept multiple inputframes
? How do we handle which sub-rect on the original to paint them onto? Does the first frame have special significance or not? - Do we maybe split up
pl_render_image
into a smaller primitive that just renders one frame to one frame (no overlays etc), and then treat the currentpl_render_image
with overlays etc. as a sort of meta-helper around this basic function? - How do we enable support for blending? Does it go into pl_render_params?