▍1. 使用OpenGL实现一个2D二维图形绘制控件(解决GDI过慢问题)源代码:此前作者正忙于一个项目,需要绘制很多的二维图形。开始想着使用GDI,不过GDI对于绘制...
使用OpenGL实现一个2D二维图形绘制控件(解决GDI过慢问题)源代码:此前作者正忙于一个项目,需要绘制很多的二维图形。开始想着使用GDI,不过GDI对于绘制很多的图像来说实在是太慢了,所以,一个解决办法是:使用OpenGL实现一个能够绘制二维图形的用户控件。-Realize the use of OpenGL graphics rendering of a 2D two-dimensional control (GDI too slow to solve the problem) the source code: after the author is busy with a project needs a lot of two-dimensional graphics rendering. Started thinking about the use of GDI, but a lot of GDI for rendering the image is really is too slow, so a solution is: the use of OpenGL to achieve a two-dimensional graphics rendering user controls.