package graphv_gles2

  1. Overview
  2. Docs

Parameters

Signature

type t
module Buffer = Gl.Buffer
module Dyn = Gl.Dyn
module VertexBuffer = Gl.VertexBuffer
module Path = Gl.Path
type gl = Gl.t
val create : flags:Graphv_core_lib.CreateFlags.t -> gl -> t option
val edge_antialias : t -> bool
val create_texture : t -> type_:[ `RGBA | `Alpha ] -> w:int -> h:int -> flags:Graphv_core_lib.ImageFlags.t -> data:Buffer.UByte.t -> int option
val delete_texture : t -> image:int -> bool
val update_texture : t -> image:int -> x:int -> y:int -> w:int -> h:int -> data:Buffer.UByte.t -> bool
val get_texture_size : t -> image:int -> int * int
val viewport : t -> width:float -> height:float -> dpi:float -> unit
val cancel : t -> unit
val flush : t -> VertexBuffer.t -> unit
val stroke : t -> paint:Graphv_core_lib.Paint.t -> composite_op:Graphv_core_lib.CompositeOperationState.t -> scissor:Graphv_core_lib.Scissor.t -> fringe:float -> stroke_width:float -> paths:Path.t Graphv_core_lib.DynArray.t -> unit
val triangles : t -> paint:Graphv_core_lib.Paint.t -> composite_op:Graphv_core_lib.CompositeOperationState.t -> scissor:Graphv_core_lib.Scissor.t -> fringe:float -> vertices:VertexBuffer.Sub.t -> unit
OCaml

Innovation. Community. Security.