Now, when I want to change my graphics, it works by changing the contents of the buffer. But when I want to see the update, I always have to create a new gdk_texture.
If you’re just dealing with a pixel buffer you’re filling out manually, you can use a simple linear array of pixels. GdkPixbuf provides that, but it also comes with a ton of code to load image data from various formats.
From that linear buffer, you can create GdkTexture instances whenever you want to draw it. There’s not much else you can do, because changing pixels requires resubmitting the buffer to the GPU.
That’s a very funny way to ask people for help. Let me know if it works out for you…
Emmanuele Bassi is one of the senior GTK / gdk-pixbuf maintainers and probably your best chance of getting this question answered .
Most devs in Discourse are quite busy and sometimes things might get missed out. In that case, a gentle ping on the topic would be the best option to get their attention.
No, I am still struggling to create working source code for that.
(It would be helpful, if seasoned developers could provide me with it. )
Plus, it does not seem to solve my problem: If I understand correctly, a GdkTexture with a linear array as pixel buffer is still a GdkTexture, an immutable Paintable.
(please correct me if I am wrong)