QtOpenglDemo.zip

上传者: GK_2014 | 上传时间: 2021-06-16 16:39:08 | 文件大小: 658KB | 文件类型: ZIP
对应GK_2014的博客Qt之OpenGL实时显示图像代码。
工作中在用Qt写界面程序时需要完成一项功能:客户端和服务端连接成功后需要实时显示从服务端发送过来的图片,并可以用鼠标滚轮进行缩放以及拖拽,由于之前学习过些许OpenGL关于纹理贴图的技术,且Qt已集成OpenGL模块,因此打算用该技术完成。另外OpenGL显示图片使用GPU渲染,如果程序需要做到毫秒级的刷新频率,用该方法可以很大程度上缓解CPU的压力,图片的动态显示也更流畅

文件下载

资源详情

[{"title":"( 22 个子文件 658KB ) QtOpenglDemo.zip","children":[{"title":"QtOpenGLWidget","children":[{"title":"images","children":[{"title":"lena1.jpg <span style='color:#111;'> 37.43KB </span>","children":null,"spread":false},{"title":"lena3.jpg <span style='color:#111;'> 37.43KB </span>","children":null,"spread":false},{"title":"lena2.jpg <span style='color:#111;'> 38.11KB </span>","children":null,"spread":false},{"title":"lena0.jpg <span style='color:#111;'> 37.28KB </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"dialog.cpp <span style='color:#111;'> 925B </span>","children":null,"spread":false},{"title":"QtOpenGLWidget.pro.user <span style='color:#111;'> 23.96KB </span>","children":null,"spread":false},{"title":"dialog.h <span style='color:#111;'> 378B </span>","children":null,"spread":false},{"title":"QtOpenGLWidget.pro <span style='color:#111;'> 1021B </span>","children":null,"spread":false},{"title":"main.cpp <span style='color:#111;'> 163B </span>","children":null,"spread":false},{"title":"gl_image.h <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"mainwindow.cpp <span style='color:#111;'> 219B </span>","children":null,"spread":false},{"title":"dialog.ui <span style='color:#111;'> 594B </span>","children":null,"spread":false},{"title":"mainwindow.h <span style='color:#111;'> 297B </span>","children":null,"spread":false},{"title":"gl_image.cpp <span style='color:#111;'> 6.66KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"build-QtOpenGLWidget-Desktop_Qt_5_12_6_GCC_64bit-Debug","children":[{"title":"moc_dialog.cpp <span style='color:#111;'> 3.23KB </span>","children":null,"spread":false},{"title":"moc_gl_image.cpp <span style='color:#111;'> 2.57KB </span>","children":null,"spread":false},{"title":"QtOpenGLWidget <span style='color:#111;'> 1.17MB </span>","children":null,"spread":false},{"title":".qmake.stash <span style='color:#111;'> 739B </span>","children":null,"spread":false},{"title":"moc_predefs.h <span style='color:#111;'> 13.37KB </span>","children":null,"spread":false},{"title":"ui_dialog.h <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"ui_form.h <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 80.77KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • zfly_deng :
    怎么没效果呀!
    2021-05-20
  • u011046042 :
    蛋用,不行啊!
    2021-03-11
  • lanmanck :
    能运行,没效果,paintGL不调用
    2020-09-07

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明