LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Does Linux use Directx or Opengl ? (https://www.linuxquestions.org/questions/linux-software-2/does-linux-use-directx-or-opengl-428544/)

TigerLinux 03-25-2006 11:21 PM

Does Linux use Directx or Opengl ?
 
What are the differences between Directx and Opengl?
Are both written by C++ ?

speedkreature 03-25-2006 11:52 PM

I'll answer this with sincerity. OpenGL is, well, open. DirectX...not so much. DirectX is proprietary and is used by Microsoft OS's only. I have not looked at all the code concerning OpenGL so I can not say for certain, but what I have seen was mostly C++ with a dash of C thrown in.
DirectX is bits of C, C++, x86 assembler, as well as a proprietary scripting laguage used within Microsoft.
It IS possible to use DirectX in *nix but the work involved is more than it's work, IMHO. A couple of friends and I did it ONCE with DirectX 7 and after patting ourselves on the back, swore we wouldn't do it again.
So to answer your post, for most things 3D in Linux, OpenGL is probably your best bet.

TigerLinux 03-26-2006 03:54 AM

Can opengl games run on windows?
In the market, i can see that most games like Warcraft/Half life/Doom 3 will require you to update your Directx.
I had seen books about opengl in windows, seems that windows can run opengl plus directx.
In current linux like Suse, what is its graphix format? Opengl?

oneandoneis2 03-26-2006 04:25 AM

There's a native Linux version of Doom3 which plays flawlessly...

cs-cam 03-26-2006 06:12 AM

DirectX isn't just a graphics API, you should be comparing Direct3D and OpenGL. Yes TigerLinux, Windows can run OpenGL..

speedkreature 03-27-2006 10:04 AM

Excellent clarification, cs-cam.

Windows OS's can use OpenGL. The majority of games for Windows utilize DirectX because it is more convenient to use a single package that can handle graphics and high definition sound.
The only company I can think of off-hand that regularly uses OpenGL in their games is LucasArts.

However, I should note that just because a game uses OpenGL in Windows or Linux, that does not mean it can be easily ported to the other OS. There are many OS specific processes happening in the background, particularly with starting or exiting a game.


All times are GMT -5. The time now is 03:06 PM.