OpenGL and Direct3D

What is the difference between OpenGL and Direct3D? Are they really different implementations for the same tasks (for example, Java and Mirosoft CLR [.NET])?

+3
source share
3 answers

They are very different graphics APIs. But it is fair to say that they basically do the same thing. DirectX is probably the preferred API if you are developing a game under windows (or a game for XBOX), and OpenGL is the choice if you want to use cross-platform support. Mac OS uses GL, just like the iPhone, for example, and many Windows games also support OpenGL.

OpenGL " ", - API , . OpenGL ES; .

DirectX, , Microsoft, , , "" ( COM, ). MS API .

(, iphone DX). /. , , , ...

+9

Google - ... , :

OpenGL Direct3D

, OpenGL Direct3D. Direct3D OpenGL... .

UPDATE

, ...

Direct3D OpenGL.

+3

Direct3D OpenGL - API, .

D3D GL , D3D -, GL - . D3D9 GLES2 . , OpenGL - GL3 GL4, , API GLES2 ( GLES2 GL2, ).

If possible, you should always use D3D on top of GL on windows, since multithreading and driver support are flaky. Take netbooks, for example, they support D3D HLSL in ShaderModel 2, but do not support the GLSL equivalent, they only support a fixed pipeline for GL.

+3
source

Source: https://habr.com/ru/post/1710103/


All Articles