Page 1 of 5

SDL vs PureBasic (in 2D sprite)

Posted: Mon Oct 10, 2005 12:18 pm
by newart
Somebody knows that more quickly, at a conclusion 2D sprites, SDL or PureBasic?

Posted: Mon Oct 10, 2005 1:56 pm
by dracflamloc
I assume you are talking about in Windows.

Pb Linux uses SDL.

What you really need to look up is a comparison between DirectDraw and SDL on windows. I'm inclined to suggest DirectDraw could be faster depending on the hardware you use, since SDL is all CPU-based, however DirectDraw has some weird blurring effect on sprites and I really don't like the picture quality it gives.

That said, SDL is definitly more powerful than DirectDraw, and DirectDraw is no longer even supported by MS I think?

Posted: Mon Oct 10, 2005 3:55 pm
by Brice Manuel
Anybody ever made SDL usable for Windows in PB?

Posted: Mon Oct 10, 2005 4:45 pm
by dracflamloc
I don't think so. Some work was being done I think making a wrapper for the DLL but I dont think it was ever completed (Sadly)

Posted: Mon Oct 10, 2005 4:52 pm
by Fred
SDL uses directdraw on Windows.

Posted: Mon Oct 10, 2005 9:54 pm
by dracflamloc
Only if you tell it to.

Posted: Mon Oct 10, 2005 10:23 pm
by Brice Manuel
I don't think so. Some work was being done I think making a wrapper for the DLL but I dont think it was ever completed (Sadly)
I have a wrapper that was done for IBPro, but its beyond my skill level to port it to PB. Maybe somebody more experienced with PB could give it a go? It would likely be easier than porting it straight from C++.

Posted: Mon Oct 10, 2005 11:14 pm
by dracflamloc
Sure could you PM it to me? (The wrapper)

Posted: Mon Oct 10, 2005 11:30 pm
by Fred
dracflamloc wrote:Only if you tell it to.
Not what i know of. The official Windows port of SDL uses DirectDraw.

Posted: Mon Oct 10, 2005 11:36 pm
by Brice Manuel
Not what i know of. The official Windows port of SDL uses DirectDraw.
Fred, no offense as I love PB. You said you were porting the 2D stuff over to DX9. I know for me, with the retro styled games I make, I will not benefit from DX9 and it would make my games incompatible with a lot of older systems out there. I am interested in SDL just so I could still have a way to use DD with PB. However, I am hoping that you will consider leaving 2D as it is, and just adding new 2D commands that utilize DX9 and give us the option of using DD or DX9.

Posted: Sat Oct 15, 2005 5:52 am
by Shannara
Hmm, I *though* (and I could be wrong ..) that with the upcoming 4.x or later, there will be a compiler switch where you can determine which version of DirectX to use? I think im wrong though ...

Posted: Sat Oct 15, 2005 8:44 am
by Psychophanta
DX9 includes 2D drawing too (DD)
So can not be understood your nonsense fear.

Posted: Sat Oct 15, 2005 9:01 am
by va!n
@Brice Manuel:
a game requiring SDL is a game that will be diretly deleted on my hd! I dont want install any 3rd part drawing-system when i own windows and we can have a fast standard called DirectX and on the other hand i think people should update their system -like take over to Win2000/XP and using latest DirectX version!

Posted: Sat Oct 15, 2005 9:02 am
by Polo
va!n wrote:@Brice Manuel:
a game requiring SDL is a game that will be diretly deleted on my hd! I dont want install any 3rd part drawing-system when i own windows and we can have a fast standard called DirectX!
Same here :)
I just hate third parties stuffs when we can go without them.

Posted: Sat Oct 15, 2005 9:04 am
by Psychophanta
Agree with va!n and Polo. One more vote.