- 博客(2)
- 资源 (11)
- 收藏
- 关注
原创 opengl shader
main.cpp #include #include #include #include "math3d.h" #include const char* pVS = "shader.vert"; const char* pFS = "shader.frag"; GLuint VBO; GLuint gScaleLocation; GLuint GWorldLocation;
2015-10-15 15:30:07 298
转载 opengl着色步骤
在OpenGL整个程序的初始化阶段(一般是init()函数),做以下工作。 1、顶点着色程序的源代码和片段作色程序的源代码要分别保存到一个字符数组里面; 2、使用glCreateshader()分别创建一个顶点着色器对象和一个片段着色器对象; 3、使用glShaderSource()分别将顶点着色程序的源代码字符数组绑定到顶点着色器对象,将片段着色程序的源代码字符数组绑定到片段着色器对象;
2015-10-14 16:19:06 494
odbc驱动程序
2013-05-04
Qt安装使用的mingw
2013-04-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人