SDL vs PureBasic (in 2D sprite)

Everything else that doesn't fall into one of the other PB categories.
newart
User
User
Posts: 34
Joined: Sat Feb 12, 2005 1:59 am
Location: Russia, SPb

SDL vs PureBasic (in 2D sprite)

Post by newart »

Somebody knows that more quickly, at a conclusion 2D sprites, SDL or PureBasic?
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post 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?
Brice Manuel

Post by Brice Manuel »

Anybody ever made SDL usable for Windows in PB?
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post 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)
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

SDL uses directdraw on Windows.
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Only if you tell it to.
Brice Manuel

Post 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++.
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Sure could you PM it to me? (The wrapper)
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

dracflamloc wrote:Only if you tell it to.
Not what i know of. The official Windows port of SDL uses DirectDraw.
Brice Manuel

Post 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.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post 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 ...
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

DX9 includes 2D drawing too (DD)
So can not be understood your nonsense fear.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post 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!
Last edited by va!n on Sat Oct 15, 2005 9:02 am, edited 1 time in total.
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post 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.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Agree with va!n and Polo. One more vote.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Post Reply