package sfml

  1. Overview
  2. Docs
type t
val loadFromFile : ?vertexShaderFilename:string -> ?fragmentShaderFilename:string -> unit -> t
val loadFromMemory : ?vertexShader:string -> ?fragmentShader:string -> unit -> t
type input = [
  1. | `Buffer of string
  2. | `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
OCaml

Innovation. Community. Security.