![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
opengl
加油吧,小杜
这个作者很懒,什么都没留下…
展开
-
qt的qopengl绘制箱子,实现翻转
opengl中最基础的应该就是绘制箱子了,这篇文章就当作记录用了。直接看代码:#ifndef MYGLWGT_H#define MYGLWGT_H#include <QWidget>#include <QOpenGLWidget>#include <QGLWidget>#include <QKeyEvent>class myglWgt : public QOpenGLWidget{ Q_OBJECTpublic: e原创 2021-08-03 16:39:02 · 278 阅读 · 0 评论 -
qt的opengl开发(qopenglwidget)(初始化,画线,平移,局部缩放)2d开发
最近因为项目原因,涉及显示图像,其实只是单纯的划线,但是线条的数量很庞大,所以需要用到opengl来提升性能,一些基础功能也是琢磨的3天左右,基本上是出来了。下面直接看代码:初始化:用qopenglwidget这三个函数必须有void GLWidget::initializeGL(){ initializeOpenGLFunctions(); //这个是qt使用opengl方法接口 QOpenGLFunctions *f = QOpenGLContext::currentCon原创 2021-01-27 17:03:40 · 7651 阅读 · 12 评论