04 2018 档案

摘要:QImage texture, buffer; buffer.load("C:/Users/wukesong/Pictures/flower.jpg"); texture = QGLWidget::convertToGLFormat(buffer);//转换为OpenGL支持的格式 glGenTextures(1, &gColorSpec);//创建纹理数... 阅读全文
posted @ 2018-04-05 00:29 茶飘香~ 阅读(1733) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示