+ 1

What is the difference between OpenGL and DirectX ?

graphics library.

7th Jul 2017, 11:36 PM
Mehdi Orking
Mehdi Orking - avatar
4 Respuestas
+ 5
OpenGL is a 2d/3d graphic rendering API that is functionally based. DirectX is an object oriented set of APIs that include functionality for playing sounds/music, (DirectSound) getting mouse/keyboard/joystick input (DirectInput) and rendering 2d/3d graphics (Direct3D).
8th Jul 2017, 1:01 AM
Karl T.
Karl T. - avatar
+ 5
Yes DirectX CAN be a pain in the butt if you're not at ease with classes and pointers.
8th Jul 2017, 1:09 AM
Karl T.
Karl T. - avatar
+ 2
DirectX is only for Windows. It is pain in the butt but very fast. OpenGL is cross-platform and less complicated. If you are new to gamedev I'd suggest you to download OpenGL with some good wrapper (library). SFML, SDL, OgreEngine <- they are all based on OpenGL and they got many features that you would not have in bare Opengl.
8th Jul 2017, 12:58 AM
Jakub Stasiak
Jakub Stasiak - avatar
+ 2
OpenGL is faster and better but harder to use. DirectX is easier to use and can also handle input, but not as well as other libraries that can be used with OpenGL.
11th Dec 2017, 12:19 AM
Jacob Pembleton
Jacob Pembleton - avatar