OpenGL is a platform independent 3D API. DirectX is extremely windows centric.
SDL is designed as a cross-platform lib, including DirectX support would break
Yet SDL has other things (such as window manager hints) that will only
affect some platforms. Cross platform doesn’t mean everything works
identically on every platform.
That’s kind of like saying “Gee, windows has open() function and so does
unix, so the fact that unix can open devices this way means that cross
compatibility is kept” wry grin
Seriously folks - on one side it’d be kind of useful to have a DirectX
emulation layer going to make those windows freaks shut up (sorry,
couldn’t resist a jab)… maybe borrow from wine? grin
I spent a few months on a windows game development list. DirectX is as
unpopular there as it is in the linux world for 3D graphics. This WAS a
long time ago (around DX5) time but I wouldn’t think DX7 has improved
much. (could be wrong though).
I’ve been hanging around a games programming board for a good while
now, and tt seems to be about 50/50 OpenGL/DirectX nowadays.
The general view is that Direct3D is cutting edge and supports all new
features, while OpenGL is almost as fast, nicer to program and
(“Portable” becomes a lot more important if you can’t afford hiring
one or two programmers just to port your ultra-optimized Direct3D
engine to OpenGL… Speed is less interesting unless you need an
extra 2% for benchmarketting your engine - the difference is usually
in that range; careful engine design is more important.)
I’ve avoided it myself. SDL covers the parts of directX I’d rather not
deal with (networking, devices, …) and OpenGL is about the nicest 3D api
Well, they say DirectX 8 is nicer than the previous versions, but I’m
not going anywhere… Besides, I’m not (yet) serious enough about
frame rates to benchmark DirectX vs. OpenGL on all the major cards,
and the speed difference between a well optimized D3D engine and a
dito OpenGL is insignificant for all practical matters. Actually, if
the OpenGL version is slower, it’s a rather safe bet to blame it on
PS: on the wine note - when I’ve actually gotten a windows game to work
(okay, my X is weird), generally windows 3D directX apps run more
efficiently and stably under wine than they do under windows with native
drivers… As an explanation I suspect the 3dfx/linux drivers are
considerably more efficient and stable than the 3dfx/windows. I have a
Quite likely; many cards have crappy Windows drivers for non-DX
APIs… (That’s why OpenGL has gotten a rumor of being slower than
D3D. Can’t see why it would be if properly implemented. Then again
I’m not a professional 3D programmer, nor very fluent in D3D.
.- M u C o S -------------------------. .- David Olofson --------.
| A Free/Open Source | | Audio Hacker |
| Plugin and Integration Standard | | Linux Advocate |
| for | | Open Source Advocate |
| Professional and Consumer | | Singer |
| Multimedia | | Songwriter |
-----> http://www.linuxdj.com/mucos -'—> david at linuxdj.com -'On Sat, 18 Nov 2000, winterlion wrote:
On Sat, 18 Nov 2000, Michael Day wrote: