uユ
Size: a a a
AM
AM
I
SI
SI
uユ
HShader_t ShaderLib_LoadShaderGLSL(name, filename_vs, filename_fs)
{
SourceBuffer src_vs, src_fs;
// Open VS source and read it to src_vs
// If cannot, return 0
// Open FS source and read it to src_fs
// If cannot, return 0
// Create & compile VS + FS
// Create and link program
// If failed, print infolog and delete program and assign its handle to zero
// Cleanup VS & FS
// If program handle is not zero, add it to list, then return HShader.
// If program handle is zero, return zero.
}
AM
HShader_t ShaderLib_LoadShaderGLSL(name, filename_vs, filename_fs)
{
SourceBuffer src_vs, src_fs;
// Open VS source and read it to src_vs
// If cannot, return 0
// Open FS source and read it to src_fs
// If cannot, return 0
// Create & compile VS + FS
// Create and link program
// If failed, print infolog and delete program and assign its handle to zero
// Cleanup VS & FS
// If program handle is not zero, add it to list, then return HShader.
// If program handle is zero, return zero.
}
ВЦ
ВЦ
AM
uユ
AM
uユ