Results 1 to 8 of 8

Thread: [tip] Use "Imaging" instead of "sdl_image&quo

  1. #1

    [tip] Use "Imaging" instead of "sdl_image&quo

    :?

    thats it

    *read the 3¬? post*


    edit: Not an advice but a tip
    From brazil (:

    Pascal pownz!

  2. #2

    [tip] Use "Imaging" instead of "sdl_image&quo

    how about some reason's why :?: That always helps
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  3. #3

    [tip] Use "Imaging" instead of "sdl_image&quo

    Right,

    * Can do everything that SDL_Image do and more
    * Avoid using tons of dlls on your game
    * Easy to Use
    * You can easy load a image from file, stream, pointer
    * More formats supported {you can easy remove the ones that you don't use to reduce size}
    * Imagemanipulation {format, alpha, rotate, resize ... and others}
    * FPC, Delphi compatible
    * Win and Unix compatible
    From brazil (:

    Pascal pownz!

  4. #4

    [tip] Use "Imaging" instead of "sdl_image&quo

    Quote Originally Posted by arthurprs
    Right,

    * Can do everything that SDL_Image do and more
    * Avoid using tons of dlls on your game
    * Easy to Use
    * You can easy load a image from file, stream, pointer
    * More formats supported {you can easy remove the ones that you don't use to reduce size}
    * Imagemanipulation {format, alpha, rotate, resize ... and others}
    * FPC, Delphi compatible
    * Win and Unix compatible
    SDL_Image does have about 4 dll's dependancies so that is a valid point. More formats and Image Manipulation, I'd agree there as well.

    However SDL_Image is FPC and Delphi Compatible and will work on Windows, Linux and Mac OSX (as i'm sure Imaging does). You can load from a file or stream (using SDL_RWops) or pointer in SDL_Image and most people find it easy to use.

    Imaging is nice, however if I'm developing a SDL based game and I want something to load SDL_Surfaces from a file or stream then I would personally stick with SDL_Image.

    Just my 10p worth
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  5. #5

    [tip] Use "Imaging" instead of "sdl_image&quo

    Imaging is pascal native code, which counts as something, it is also fpc and delphi compatible (i know, i made program using it on windows and easily ported it to linux & then even bsd)
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  6. #6

    [tip] Use "Imaging" instead of "sdl_image&quo

    Quote Originally Posted by technomage
    Quote Originally Posted by arthurprs
    Right,

    * Can do everything that SDL_Image do and more
    * Avoid using tons of dlls on your game
    * Easy to Use
    * You can easy load a image from file, stream, pointer
    * More formats supported {you can easy remove the ones that you don't use to reduce size}
    * Imagemanipulation {format, alpha, rotate, resize ... and others}
    * FPC, Delphi compatible
    * Win and Unix compatible
    SDL_Image does have about 4 dll's dependancies so that is a valid point. More formats and Image Manipulation, I'd agree there as well.

    However SDL_Image is FPC and Delphi Compatible and will work on Windows, Linux and Mac OSX (as i'm sure Imaging does). You can load from a file or stream (using SDL_RWops) or pointer in SDL_Image and most people find it easy to use.

    Imaging is nice, however if I'm developing a SDL based game and I want something to load SDL_Surfaces from a file or stream then I would personally stick with SDL_Image.

    Just my 10p worth
    RWops is not easy i already tryed it

    :?
    Imaging has more benefits and, so i prefer it
    From brazil (:

    Pascal pownz!

  7. #7

    [tip] Use "Imaging" instead of "sdl_image&quo

    Quote 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]
    <A HREF="http://www.myhpf.co.uk/banner.asp?friend=139328">
    <br /><IMG SRC="http://www.myhpf.co.uk/banners/60x468.gif" BORDER="0">
    <br /></A>

  8. #8

    [tip] Use "Imaging" instead of "sdl_image&quo

    Quote Originally Posted by technomage
    Quote 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!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •