常用于游戏 UI 的立即模式 (immediate mode),用于实时渲染应用和游戏,如 ImGui
常用于一般应用界面的保留模式 (retained mode),如大多数界面框架 Qt、wxWidgets