Hi, yeah, you can create a pygame surface frombuffer. pygame.image.frombuffer. So if you have a python buffer like from ctypes or numpy, you can create a Surface.
Will that work for you? On Wed, Sep 14, 2011 at 5:58 PM, 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? >