Module SFShader

module SFShader: sig .. end


Online documentation for the Shader class
type t 
val loadFromFile : ?vertexShaderFilename:string ->
?fragmentShaderFilename:string -> unit -> t
val loadFromMemory : ?vertexShader:string -> ?fragmentShader:string -> unit -> t
type input = [ `Buffer of string | `Filename of string ] 
val load : ?vertexShader:input ->
?fragmentShader:input -> unit -> t
val destroy : shader:t -> unit
val bind : shader:t -> unit
val isAvailable : unit -> bool
val setFloatParameter : shader:t -> name:string -> x:float -> unit
val setFloat2Parameter : shader:t -> name:string -> x:float -> y:float -> unit
val setFloat3Parameter : shader:t -> name:string -> x:float -> y:float -> z:float -> unit
val setFloat4Parameter : shader:t ->
name:string -> x:float -> y:float -> z:float -> w:float -> unit