So there is no solution for this? All I want to do is: # imgA, imgB are identically sized instances of pyglet.image.ImageData in RGBA format
imgC = imgA + imgB # imgC is now imgA with imgB superimposed on top of it. Transparent pixels in imgB allow *opaque* pixels in imgA to be visible I never thought something so simple would be so hard! On Wednesday, March 11, 2020 at 3:34:15 PM UTC-4, Jonathon Parker wrote: > > A minimal example > > # rawdata1 and rawdata2 are a list of c_ubytes > > my_texture_region = pyglet.image.ImageData(x, y, 'RGB', > rawdata1).get_texture() > my_image = pyglet.image.ImageData(x, y, 'RGB', rawdata2) > my_texture_region.blit_into(my_image, 0, 0, 0) > > When I create a sprite using my_texture region, I only see my_image. What > I want is my_image on top of my_texture_region. > > What am I doing wrong? > > > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyglet-users/8c333de2-06a7-4207-ab27-b0482783167f%40googlegroups.com.