当前位置:网站首页>OpenGL draws model on QT platform to solve the problem of initializing VAO and VBO
OpenGL draws model on QT platform to solve the problem of initializing VAO and VBO
2022-06-30 05:01:00 【Jason_ Chen__】
Threads
Threads 1:MainWindow
Threads 2:QOpenGLWidget
Be careful QOpenGLWidget Refresh mechanism
skill
Initialize the model VAO、VAO and shader Put it in QOpenGLWidget Threads , And remember makeCurrent()
void GLWidget::on_getModel(GcodeModel *model) // Public slot
{
makeCurrent();
qDebug() << " Get the model ";
qDebug() << " Model address " << model;
this->model = model; // Get the model pointer for which the data has been prepared
this->model->initModel(); // initialization VAO、VAO and shader
emit modelInited();
doneCurrent();
}
边栏推荐
- Important knowledge points in unity3d
- 力扣349. 两个数组的交集
- MySQL查询小工具(一)json格式的字符串字段中,替换json数组中对象的某个属性值
- Keywords implements and @override
- Meet in Bangkok for a romantic trip on Valentine's Day
- Unreal 4 unavigationsystemv1 compilation error
- 力扣977. 有序数组的平方
- Easyrecovery data recovery software recovers my photo and video data two years ago
- Unreal 4 learning notes - set player birth point
- [control] multi agent system summary. 5. system consolidation.
猜你喜欢

【Paper】2021_ Uniformity of heterogeneous hybrid multi-level intelligent systems using UGV and UAV

Unity3d lookat parameter description

Unreal 4 learning notes - data storage using blueprints

A collection of errors encountered in machine learning with unity

What is multimodal interaction?

Autowired注解警告的解决办法

Unity lens making

力扣2049:统计最高分的节点数目

【Paper】2017_ Research on coordinated control method of underwater vehicle formation marine survey

深度学习------不同方法实现Inception-10
随机推荐
Arsenal Stadium Tour - take you to the front and back of Arsenal Stadium
Ripple effect of mouse click (unity & shader)
Special folders in unity3d and their meanings
【Paper】2021_ Observer-Based Controllers for Incrementally Quadratic Nonlinear Systems With Disturbanc
力扣59. 螺旋矩阵 II
How to install win7 on AMD Ruilong CPU A320 series motherboard
Is the Flink connector JDBC open source? Where can I download it
图的一些表示方式、邻居和度的介绍
【 VCS + Verdi joint simulation】 ~ Taking Counter as an Example
力扣27. 移除元素
Pycharm database tool
Unity a* road finding force planning
003-JS-DOM-Attr-innerText
Unity ontriggerenter does not call
Unity lens making
Unity script life cycle and execution sequence
Oracle-数据的基本操作
Draw on screen border in Commodore 64
MySQL query gadget (I) replace a property value of the object in the JSON array in the JSON format string field
2021-06-17 solve the problem of QML borderless window stretching, window jitter and flicker when stretching and shrinking