public static GfxProgram CheckLink(this GfxProgram program) { if (!GL.glGetProgramLinkedStatus(program)) { throw new OpenGLESException(GL.glGetProgramLinkedInformation(program)); } return(program); }
public static GfxProgram Link(this GfxProgram program) { GL.glLinkProgram(program.Id); program.CheckLink(); return(program); }
public static GfxProgram AttachShader(this GfxProgram program, GfxShader shader) { GL.glAttachShader(program.Id, shader.Id); return(program); }