exception Program_error of string
Raised when an error occurs during the manipulation of a program
This module provides a high-level wrapper around GL shader programs and can be used to compile shaders.
exception Program_error of string
type t
type src = [ `File of string | `String of string]
val from_source : (module RenderTarget.T with type t = 'a) -> ?log:OgamlUtils.Log.t -> context:'a -> vertex_source:src -> fragment_source:src -> unit -> t
#version xxx
val from_source_list : (module RenderTarget.T with type t = 'a) -> ?log:OgamlUtils.Log.t -> context:'a -> vertex_source:(int * src) list -> fragment_source:(int * src) list -> unit -> t
val from_source_pp : (module RenderTarget.T with type t = 'a) -> ?log:OgamlUtils.Log.t -> context:'a -> vertex_source:src -> fragment_source:src -> unit -> t
#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.