¿CUÁLES SON LAS DIFERENCIAS ENTRE OPENGL Y DIRECTX?

 - 
The competition between OpenGL & DirectX is possibly as well known as the wars waged between AMD & Hãng Intel enthusiasts.

Bạn đang xem: ¿cuáles son las diferencias entre opengl y directx?

This topic has sparked the fires of many flame wars throughout the years, & I don"t anticipate that changing anytime soon. I won"t preach why I prefer OpenGL over DirectX, but rather lay out the facts và let you make that decision. So let"s dive sầu in!
Perhaps the most obvious difference is that DirectX, as opposed to OpenGL, is more than just a graphics API. DirectX supports sound, music, input, networking, & multimedia. On the other h&, OpenGL is strictly a graphics API. So what aspect of OpenGL sets it apart from the DirectX graphics component? One major difference is that OpenGL is cross-platsize, và DirectX is available only on Windows and XBox. If you need to develop for more than Windows, OpenGL is the way to go.When it comes to graphics capabilities, both APIs rely on the use of the traditional graphics pipeline.

Xem thêm: Weekly Grammar: Perbedaan Would, Could, Dan Might Halaman All

This is the same pipeline that has been used in computer games since the early days of computer graphics.Both OpenGL and DirectX describe vertices as a set of data consisting of coordinates in space that define the vertex location and any other vertex related data. Graphics primitives, such as points, lines, và triangles, are defined as an ordered set of vertices. There are differences in how each API handles how vertices are combined lớn form primitives, which are laid out below. This chart is based off the book, OpenGL trò chơi Programming
*
Table 1.1:
Feature:OpenGLDirectX
Vertex BlendingN/AYes
Multiple Operating SystemsYesNo
Extension MechanismYesYes
DevelopmentMultiple member BoardMicrosoft
Thorough SpecificationYesNo
Two-sided lightingYesNo
Volume TexturesYesNo
Hardware independent Z-buffersYesNo
Accumulation buffersYesNo
Full-screen AntialiasingYesYes
Motion BlurYesYes
Depth of field YesYes
Stereo RenderingYesNo
Point-size/line-width attributesYesNo
PickingYesNo
Parametric curves & surfacesYesNo
Cache geometryDisplay ListsVertex Buffers
System emulationHardware not present Let ứng dụng determine
InterfaceProcedure callsCOM
UpdatesYearlyYearly
Source Code Sample SDK Implementation
So now you know what separates DirectX và OpenGL, and hopefully you have sầu chosen based on facts which you would prefer, not on myths or opinions. I hope you chose OpenGL, as that"s what I will be teaching. If you chose DirectX my tutorials won"t help you very much. In the next lesson we will begin with our first OpenGL program. Until next time, happy coding!Previous: OpenGL IntroductionNext: Introduction to Windows ProgrammingBaông xã to OpenGL tutorial index
Popular pagesJumping inlớn C++, the longmon.vn ebook How lớn learn C++ or C C TutorialC++ Tutorial5 ways you can learn to program faster The 5 most comtháng problems new programmers faceHow khổng lồ phối up a compilerHow to make a game in 48 hours