[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Changing an SDL Surface into a pygame.Surface



Hello all. I'm writing a linked library in C for use with Python, and I would like to move
SDL Surfaces generated there into Pygame efficiently (Not a pixel-by-pixel conversion)
Is there any way to point to the SDL Surface pixel data in a pointer from the linked library
in a pygame Surface or to copy the data into a pointer passed from the pygame Surface to
the linked library?