I've written a lot of DirectX code and I've written about DirectX extensively. I've even produced online training courses on DirectX. It really isn't as hard as some developers make it out to be. There's definitely a learning curve, but once you get over that, it's not hard to understand how and why DirectX works the way it does. Still, I'll admit that the DirectX family of APIs could be easier to use. A few nights ago, I decided to remedy this. I stayed up all night and wrote a little header file. A few nights later, it approached 5,000 lines of code. My goal was to provide something that you can use to build apps more easily with Direct2D and to challenge all of the "C++ is hard" or "DirectX is hard" arguments that are so prevalent today. I didn't want to produce yet another heavy wrapper around DirectX. Instead, I decided to leverage C++11 to produce a simpler API for DirectX without imposing any space and time overheard to the core DirectX API.
展开▼
机译:我已经写了很多DirectX代码,并且已经广泛地撰写了有关DirectX的文章。我什至在DirectX上制作了在线培训课程。实际上,这并不像某些开发人员说的那么难。肯定有一个学习曲线,但是一旦克服了这一点,就不难理解DirectX的工作方式和原因。尽管如此,我还是承认DirectX API系列可能更易于使用。几天前,我决定对此进行补救。我熬夜,写了一个小头文件。几个晚上后,它接近了5,000行代码。我的目标是提供一些东西,您可以使用它们来使用Direct2D更轻松地构建应用程序,并挑战当今如此普遍的所有“ C ++很难”或“ DirectX很难”的观点。我不想围绕DirectX制作另一个笨拙的包装。相反,我决定利用C ++ 11为DirectX生成一个更简单的API,而不会在核心DirectX API上强加任何时间和空间。
展开▼