在我的OpenGL体验期间,我经常忘记设置一些状态.所以我认为状态机今天可能不是一个好的设计.但现在必须兼容.而且我也知道DirectX在早期也是一台状态机.我想知道为什么OpenGL和DirectX最初被设计为状态机?
opengl directx
directx ×1
opengl ×1