+ 1
What is the difference between OpenGL and DirectX ?
graphics library.
4 Answers
+ 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).
+ 5
Yes DirectX CAN be a pain in the butt if you're not at ease with classes and pointers.
+ 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.
+ 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.