The PySurface_New Pygame api function returns a new Pygame surface object for an existing SDL surface. It is defined in pygame.h.
Lenard Lindstrom
On Sep 14, 2011, Scribble Master <scribble...@gmail.com> wrote:
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?