Raised when an error occurs during the manipulation of a program
Module OgamlGraphics.Program
High-level wrapper around GL shader programsThis module provides a high-level wrapper around GL shader programs and can be used to compile shaders.
Type of a program
Type of a source, from a file or from a string
Compiles a program from a rendering context, a vertex source and a fragment source. Compilation errors will be reported on the provided log. The source must begin with a version assigment
See : OgamlUtils.Log
#version xxx
See : OgamlUtils.Log
Compiles a program from a rendering context and a list of sources paired with their required GLSL version. The function will chose the best source for the current context. Compilation errors will be reported on the provided log.
See : OgamlGraphics.Context
See : OgamlUtils.Log
See : OgamlGraphics.Context
See : OgamlUtils.Log
Compiles a program from a rendering context and a source. The source should not begin with a
See : OgamlGraphics.Context
See : OgamlUtils.Log
#version xxx
assignment, as the function will preprocess the sources and prepend the best version declaration. Compilation errors will be reported on the provided log.See : OgamlGraphics.Context
See : OgamlUtils.Log