[SDL] SDL Clipboard API: Recommendations based on research
ewmailing at gmail.com
Fri Jul 23 01:52:30 PDT 2010
On 7/22/10, Sam Lantinga <slouken at libsdl.org> wrote:
> Unfortunately on Mac OS X, the format in question is TGA, which require
> SDL_image support. :)
>> I would say to just worry about converting it to one image format
>> by the system. Then you can use it together with applications not built to
>> support these mime types, but do support whatever is available from the
>> system. On Win32, this would be bitmaps (which should be fairly easy with
>> SDL_Surface). Don't know about other platforms.
What?! Did nobody actually look at my real, actually working
implementation for Mac and Windows which has been sitting around for
years? Mac uses TIFF as the native format, but once you get that,
there are other OS provided things that let me convert to BMP. I got
all this to integrate nicely with SDL proper. No SDL_image required.
It's all reasonably fast too.
Windows uses BMP. Unfortunately, there are a lot of missing
convenience things so I end up doing some hoop jumping creating proper
BMP headers, but I already did this nasty work for you. Again,
everything integrates nicely with SDL proper. No SDL_image required.
It seems reasonably fast too.
More information about the SDL