opengl和gdi
时间: 2023-09-03 14:14:41 浏览: 130
OpenGL是一种图形库,可以用来渲染2D和3D图形。它是一个大状态机,通过改变其状态来改变其运行的上下文,从而控制图形的输出结果。与之相比,GDI(图形设备接口)是Windows操作系统提供的图形渲染接口,用于绘制2D图形和文字。它使用CPU进行图形计算,而不是通过GPU来进行加速。所以OpenGL在性能方面比GDI更优秀,尤其在处理复杂的3D图形时效果更好。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [GDI 及OPENGL的区别](https://blog.csdn.net/qq_43080331/article/details/98062018)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [QT使用GDI和OpenGL绘图,相比QPainter绘图降低CPU占用率](https://blog.csdn.net/wwwwxhh/article/details/79461668)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文