:?
thats it
*read the 3¬? post*
edit: Not an advice but a tip
:?
thats it
*read the 3¬? post*
edit: Not an advice but a tip
From brazil (:
Pascal pownz!
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>
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!
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.Originally Posted by arthurprs
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>
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
RWops is not easy i already tryed itOriginally Posted by technomage
:?
Imaging has more benefits and, so i prefer it
From brazil (:
Pascal pownz!
JEDI-SDL ships with sdlstreams.pas which wraps up TStream and sdL_rwops. If you use that library it's very easy to use .Originally Posted by arthurprs
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>
Uhm niceOriginally Posted by technomage
From brazil (:
Pascal pownz!
Bookmarks