#include "EXTERN.h" #include "perl.h" #include "XSUB.h" #ifndef aTHX_ #define aTHX_ #endif #include MODULE = SDL::Overlay PACKAGE = SDL::Overlay PREFIX = overlay_ =for documentation SDL_Overlay -- YUV video overlay typedef struct{ Uint32 format; int w, h; int planes; Uint16 *pitches; Uint8 **pixels; Uint32 hw_overlay:1; } SDL_Overlay; =cut SDL_Overlay * overlay_new(CLASS, width, height, Uint32 format, display) char* CLASS int width int height Uint32 format SDL_Surface *display; CODE: RETVAL = SDL_CreateYUVOverlay(width, height, format, display); OUTPUT: RETVAL void overlay_DESTROY(overlay) SDL_Overlay *overlay CODE: SDL_FreeYUVOverlay(overlay);