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
阅读全文
摘要:std::vector<osg::Vec3f>转osg::Vec3Array: std::vector<osg::Vec3f>bufferOutLine; osg::Vec3Array* twoo = new osg::Vec3Array(); for (auto one : bufferOutLi
阅读全文
摘要:在openGL中,所有图形都是通过分解成三角形的方式进行绘制。(一个矩形分解成两个三角形进行绘制) glDrawArrays 和 glDrawElements 的作用都是从一个数据数组中提取数据渲染基本图元。 一、glDrawArrays(int mode,int first,int count)
阅读全文