Page 1 of 1

SDL for windows instead of DirectX

Posted: Mon Nov 17, 2003 9:30 pm
by Num3
The 2D Games Libraries uses DirectX under windows.

I believe it is important this library to work the same way under Windows and Linux.

What is your opinion?

Posted: Mon Nov 17, 2003 9:46 pm
by plouf
as long as the purebasic level is the same (openscreen() displaysprite() etc) are the same i see no reason to change !?

Posted: Mon Nov 17, 2003 9:54 pm
by Codemonger
I don't use Linux, so I can't say. Windows Rocks :twisted: (justing getting a rise out of linux fans :lol: )

Posted: Mon Nov 17, 2003 11:05 pm
by fsw
Sorry but I don't understand the question.

PureBasic uses DirectX for Windows and SDL for Linux.
All Drawing commands are (or should be) transparent.
This means: as long you use official PureBasic commands you don't have to care how a function interacts with the OS.

Besides you can already use SDL for Windows now. A year ago I coded some stuff for it, and it seemed to work OK - but I didn't see any advantages to do it this way. Only more work...

Maybe you could explain better what you mean. :wink:

Posted: Fri Nov 28, 2003 9:00 am
by scurrier
windows should use whats native to it. not try to make it conform to a linux world. that will just cause problems in coding. just the same this linux way should stay the same. why try to change the way an OS handles things in it's native way thats just asking for trouble. you can still make the same commands function the same way under 2 different compilers. and i have played DX games on linux and they don't look the same. can't realy make a comercial game that dosn't look right now can you.

thats my 2 cents worth


Sean

Posted: Fri Nov 28, 2003 10:33 am
by Psychophanta
As fsw say; you can use however, SDL.dll functions in windows. :)

Posted: Fri Nov 28, 2003 12:14 pm
by dontmailme
DirectX has to be the way to go :)

As long as the commands are the same, who cares what the compiler does with them ? As long as it's the fastest way......

Posted: Fri Nov 28, 2003 4:31 pm
by dmoc
Ahhh but which version of dx would that be, 7, 8, 8.1 or 9? (is there now a 9.1?). I'm not getting dragged into this discussion but no matter what the merits of dx, if it's driven by marketing it's a load of **** (<< put your own ending in :wink: ). And who here owns an expensive (for the ave person) gfx card that is not compatible with dx9? Bet if you do then the card is only 12-18 months old but you now feel the urge to replace that "old fashioned piece of crap"??? :twisted: