pub fn gl_program_from_source(
gl: &GlContext,
prefix: Option<&str>,
shaders: &str,
) -> Result<Program>
Expand description
Helper function to compile an OpenGL shader program from source.
The vertex and fragment shaders should be separated by a line with ###
.
The prefix
argument, if specified, is prepended to both shaders.