ShaderMac源码
mac上,openGL,shader代码.GLuintShader::CompileShader(GLenumshaderType,constchar*shaderCode){GLuintshader=glCreateShader(shaderType);glShaderSource(shader,1,&shaderCode;,nullptr);glCompileShader(shader);GLintcompileResult=GL_TRUE;glGetShaderiv(shader,GL_COMPILE_STATUS,&compileResult;);if(compileResul
下载地址
用户评论