Working with the clipboard

The SDL2 Migration Guide (https://wiki.libsdl.org/MigrationGuide) mentions that clipboard support as well as drag and drop are among the new features supported by SDL2. However I can’t seem to find any documentation on how to use these features.

I’d like a user to be able to copy an image from somewhere and then paste it into my SDL2 program. How can I go about doing something like that?------------------------
Daniel D’Agostino
http://www.programmersranch.com/

Le dimanche, 23 f?vrier 2014 ? 12:11, dandago a ?crit :

The SDL2 Migration Guide (https://wiki.libsdl.org/MigrationGuide) mentions that clipboard support as well as drag and drop are among the new features supported by SDL2. However I can’t seem to find any documentation on how to use these features.

https://wiki.libsdl.org/CategoryClipboard
https://wiki.libsdl.org/SDL_DropEvent

I’d like a user to be able to copy an image from somewhere and then paste it into my SDL2 program. How can I go about doing something like that?
You won’t be able to do that with the clipboard: it supports only text. If user has the image in a file, drag and drop should allow you to that.

Best,

Daniel