当前位置:网站首页>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();
}
边栏推荐
- A virtual reality secret room escape adventure, let you see Technology Singapore
- brew安装nvm报nvm command not found解决方案
- C # equipment synthesis
- HTC vive cosmos development - handle button event
- Recommended cultural landmarks of these tourist attractions in Bangkok
- 图的一些表示方式、邻居和度的介绍
- EasyRecovery数据恢复软件 恢复了我两年前的照片视频数据
- Unity notes_ SQL Function
- [control] multi agent system summary. 5. system consolidation.
- A must see cruise experience in Bangkok: visit the Mekong River and enjoy the scenery on both sides of the river
猜你喜欢

Preorder traversal of Li Kou 589:n fork tree

pycharm 数据库工具

Lambda&Stream

Unreal 4 learning notes - data storage using blueprints

Universal Studios Singapore: a good place for a one-day parent-child tour in Singapore

Photon pun refresh hall room list

UE4 method of embedding web pages

LXC 和 LXD 容器总结

一条命令运行rancher

【Paper】2021_ Analysis of the Consensus Protocol of Heterogeneous Agents with Time-Delays
随机推荐
Spring Festival Tourism Strategy: welcome the new year in Bangkok, Thailand
Oculus quest2 development: (I) basic environment construction and guide package
為什麼win10開熱點後電腦沒有網絡?
Output directory of log files after unity3d packaging
【Paper】2021_ Uniformity of heterogeneous hybrid multi-level intelligent systems using UGV and UAV
Draw on screen border in Commodore 64
Writing unityshader with sublimetext
Arsenal Stadium Tour - take you to the front and back of Arsenal Stadium
MySQL query gadget (I) replace a property value of the object in the JSON array in the JSON format string field
003-JS-DOM-Attr-innerText
Force buckle 704 Binary search
MySQL查询小工具(一)json格式的字符串字段中,替换json数组中对象的某个属性值
Using the command line to convert JSON to dart file in fluent
brew安装nvm报nvm command not found解决方案
Some books you should not miss when you are new to the workplace
Check London attractions suitable for parents and children in winter vacation
Ripple effect of mouse click (unity & shader)
Under what conditions does the Z-index attribute expire?
Steamvr causes abnormal scene camera
Li Kou 2049: count the number of nodes with the highest score