What is Open GL?

Open GL is a library of graphics routines that makes sophisticated 3-D graphics programming accessible to common programmers. It is Platform Independent as it is supported on Windows, Mac, Linux, and several other UNIX variants. Take note that Direct3D works on Windows only. Whether OpenGL or Direct3D, which is best for you, depends on the hardware acceleration provided by their drivers for your graphics card! If you don't have a separate card then Open GL applications that use the hardware features simply won't work.

DirectX on the other hand supports all its features through its 'REF' software rasterizer. So even if the software emulation is "dead-slow" :( they guarantee that the app will work :). By using the more than 100 supported Open GL commands, a programmer can do anything from creating simple shapes to composing animated scenes. Open GL uses a function oriented interface, while Direct3D uses an object oriented interface. The underlying math and 3D programming theory is the same for both DirectX and OpenGL and if you can learn that you will do fine with both. Other than Direct3D and DirectDraw all other components of DirectX can be used with OpenGL. Although you cannot use DirectDraw for blitting with OpenGL you can still use it to arbitrarily set the display mode resolution and color depth before creating the OpenGL window. All other DirectX API's like DirectSound, DirectInput and DirectPlay can be used together with OpenGL as there is no conflict.

Windows only officially support OpenGL 1.1. On the other hand they try to support each new version of DirectX through their Windows Version that follows. Direct3D as a Microsoft product is updated very frequently and hence supports the latest card features. OpenGL being an open-standard and a community product, takes some time for every member of the committee to jointly reach a new standard. DirectX doesn't support any unofficial features. But OpenGL has an 'extensions' mechanism that allows you to play with certain features of the card before it's been agreed how it officially works. Also since DirectX8's programmable pipeline (Vertex shader and pixel shader), DirectX was almost equivalent with Open GL in terms of 3D Graphics Performance. Developers play a leading role in deciding who will ultimately win in this API war.

FAQ Menu

 
Printer friendly version of the FAQ-DIRECTX-What-Is-Open-GL page


Sponsored links

Six Sigma Certification
100% Online-Six Sigma Certificate from Villanova - Find Out More Now.
SFTP components for .NET
Add complete SSH and SFTP support to your .NET framework application
ASP.NET 3.5 Hosting on Windows 2008!
ASP.NET 3.5/2.0 Hosting on Windows 2008 & 2003! AJAX, LINQ, & Silverlight Ready! 3 Mo. Free!!
PureCM Software Configuration Management
Version control and integrated issue tracking - powerful and easy to use. Get your FREE trial now!
Virtual File System SDK
Create your own file systems in Windows and .NET applications

Advertisement



Free Magazine

Free Magazines
eWeek The essential technology information source for builders of e-business.... subscribe now

Newsletter | Submit Content | About | Advertising | Awards | Contact Us | Link to us |
© 1996-2008 Community Networks Ltd All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Synchron Data - .NET development.