OpenGL or Direct3D for a new Windows game project? Or something else?

后端 未结 15 1501
小鲜肉
小鲜肉 2021-02-14 16:22

I\'m starting a hobby game project on Windows that will make heavy use of 3D graphics effects. It will most likely be written in C++.

Should I use OpenGL or Direct3D for

15条回答
  •  情深已故
    2021-02-14 17:01

    It is my understanding that in Direct3D you must handle all resource allocation and management yourself, whereas the OpenGL specification leaves this to the driver/implementation rather than the application.

    This allows Direct3D developers to use the best allocation and management methods suitable to the application, but is also extra work.

    I have done the typical "Hello World" applications in each, and I prefer OpenGL over Direct3D, but that is just my opinion. You should try out both, spend a day or two learning and playing around with each, and decide for yourself.

提交回复
热议问题