LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-25-2006, 11:21 PM   #1
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Rep: Reputation: 30
Cool Does Linux use Directx or Opengl ?


What are the differences between Directx and Opengl?
Are both written by C++ ?
 
Old 03-25-2006, 11:52 PM   #2
speedkreature
LQ Newbie
 
Registered: Mar 2006
Distribution: Debian
Posts: 2

Rep: Reputation: 0
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.

Last edited by speedkreature; 03-26-2006 at 12:05 AM.
 
Old 03-26-2006, 03:54 AM   #3
TigerLinux
Senior Member
 
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731

Original Poster
Rep: Reputation: 30
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?
 
Old 03-26-2006, 04:25 AM   #4
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
There's a native Linux version of Doom3 which plays flawlessly...
 
Old 03-26-2006, 06:12 AM   #5
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
DirectX isn't just a graphics API, you should be comparing Direct3D and OpenGL. Yes TigerLinux, Windows can run OpenGL..
 
Old 03-27-2006, 10:04 AM   #6
speedkreature
LQ Newbie
 
Registered: Mar 2006
Distribution: Debian
Posts: 2

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DirectX under Linux? Corey Edwards Linux - Software 7 08-21-2011 04:45 AM
OpenGL vs DirectX bento Linux - Software 1 03-07-2006 02:16 PM
Directx 9c for linux BRC Linux - Newbie 5 11-03-2004 01:32 AM
Enemy territory - DirectX? OpenGL? michaeltweak Linux - General 1 01-12-2004 09:46 AM
free c/c++ compiler w/ directx/opengl js_530 Programming 9 07-27-2003 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration