11 2022 档案

摘要:// note that the awesomeface.png has transparency and thus an alpha channel, so make sure to tell OpenGL the data type is of GL_RGBA 请注意,Awesomeface.p 阅读全文
posted @ 2022-11-23 15:37 jessicaland 阅读(58) 评论(0) 推荐(0) 编辑
摘要:std::vector<osg::Vec3f>转osg::Vec3Array: std::vector<osg::Vec3f>bufferOutLine; osg::Vec3Array* twoo = new osg::Vec3Array(); for (auto one : bufferOutLi 阅读全文
posted @ 2022-11-23 10:39 jessicaland 阅读(55) 评论(0) 推荐(0) 编辑
摘要:在openGL中,所有图形都是通过分解成三角形的方式进行绘制。(一个矩形分解成两个三角形进行绘制) glDrawArrays 和 glDrawElements 的作用都是从一个数据数组中提取数据渲染基本图元。 一、glDrawArrays(int mode,int first,int count) 阅读全文
posted @ 2022-11-08 14:27 jessicaland 阅读(484) 评论(0) 推荐(0) 编辑

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