+ 5

OpenGL or DirectX?

What do you think is better: OpenGL or DirectX? (for creating 3d games)

27th Mar 2017, 10:47 PM
RLi17
5 odpowiedzi
+ 11
DirectX docs are hell to read but I would choose DirectX because it's object oriented (Component Object Model) so more adequate for game programming.
27th Mar 2017, 11:44 PM
Karl T.
Karl T. - avatar
+ 6
DirectX is for Windows, OpenGL is for everything else. For that reason, I'd stick with OpenGL; you can accomplish the same things in both.
27th Mar 2017, 11:05 PM
Squidy
Squidy - avatar
+ 3
DirectX WebGL - for 3D browser games
27th Mar 2017, 10:50 PM
Yaroslav Pieskov
Yaroslav Pieskov - avatar
+ 3
To fill up @Squidy's answer: DirectX is getting much hate because it's really complicated. (Like argument in function which takes pointer that is pointing to pointer so it looks like this: int func(int ***arg); ) However DirectX is on really low level, its communication with GPU is just faster. Yet I'd recommend using OpenGL for crossplatform + it's still pretty low-level library.
27th Mar 2017, 11:35 PM
Jakub Stasiak
Jakub Stasiak - avatar
+ 2
OpenGL. It’s harder but faster and better than DirectX as a graphics library, although with OpenGL, you will have to have another library for things like input. OpenGL is only a graphics library, DirectX also does input and sound.
11th Dec 2017, 12:13 AM
Jacob Pembleton
Jacob Pembleton - avatar