graphv_core_lib

Primitives for the Graphv vector graphics library
Library graphv_core_lib
Module type Graphv_core_lib . Impl . S
type t
module Buffer : Buffer.S
module VertexBuffer : sig ... end
module Path : sig ... end
type gl
val create : flags:CreateFlags.t -> gl -> t option
val edge_antialias : t -> bool
val create_texture : t -> type_:[ `RGBA | `Alpha ] -> w:int -> h:int -> flags: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 fill : t -> paint:Paint.t -> composite_op:CompositeOperationState.t -> scissor:Scissor.t -> fringe:float -> bounds:Bounds.t -> paths:Path.t DynArray.t -> verts:VertexBuffer.t -> unit
val stroke : t -> paint:Paint.t -> composite_op:CompositeOperationState.t -> scissor:Scissor.t -> fringe:float -> stroke_width:float -> paths:Path.t DynArray.t -> unit
val triangles : t -> paint:Paint.t -> composite_op:CompositeOperationState.t -> scissor:Scissor.t -> fringe:float -> vertices:VertexBuffer.Sub.t -> unit