document rendering of arbitrary textures
First off, thanks a lot for implementing the scene API! It is really useful for us here developing cagebreak and we are greatly looking forward to switching to it.
There's just one thing that we haven't been able to figure out, namely
how to render arbitrary pixel data (in our case obtained from cairo). We
used to do this via a wlr_texture
but seeing as there does not seem to
be a method for inserting a wlr_texture
into the scene graph, this is
no longer an option.
If I interpreted issue #3161 (closed) correctly the recommended way to achieve
this now involves using a wlr_buffer
. After a bit of reverse engineering I
figured that I would most likely have to use the allocator to create
such a buffer and then access the buffers data via the wlr_buffer_begin_data_ptr_access
method. However, in my case the allocator returns a gbm buffer which does not have
the data pointer access capabilities.
Am I missing something? I'm sorry if this is obvious... In any case, maybe it would help other developers trying to achieve something similar to add an example of how to render custom pixel data?
cheers, project-repo