Welcome to PGD
If this is your first visit, be sure to check out the FAQ by clicking the link above. You have to register before you can post.
If you have recently signed up, please make sure you log in so that your activity is registered. This is required for automatic promotions to work and to ensure your account is not deleted during the registration process.
AthenaOfDelphi
Originally Posted by technomage Originally Posted by arthurprs RWops is not easy i already tryed it JEDI-SDL ships with sdlstreams.pas which wraps up TStream and sdL_rwops. If you use that library it's very easy to use . There is a function in that unit called LoadSDLBMPFromStream Which could easily be changed to use SDL_Image [pascal] function LoadSDLImageFromStream( stream : TStream ) : PSDL_Surface; var SDL_RWops : PSDL_RWops; begin SDL_RWops := SDLStreamSetup( stream ); result := IMG_Load_RW( SDL_RWops, 0 ); SDLStreamCloseRWops( SDL_RWops ); end; [/pascal] Uhm nice
From brazil (: Pascal pownz!
Forum Rules
Bookmarks