Graphv_webglSourceThis module is ready for use by user applications. It combines the Graphv_webgl_impl module with the Graphv_font_js module to produce a new vector library.
module CreateFlags : sig ... endFlags for rendering quality.
Creates a new renderer from a WebGL context. Make sure the stencil buffer is enabled for the WebGL context.
module Align : sig ... endText alignment flags.
module BlendFactor : sig ... endBlending modes used for compositing. The current blend mode determines how a fill or stroke is composited to the current framebuffer. See here for more information on the different blending modes.
module Bounds : sig ... endThis module exposes the native platforms buffer. Can be used for copy-free interop.
module CompositeOperation : sig ... endmodule CompositeOperationState : sig ... endmodule ImageFlags : sig ... endmodule Matrix : sig ... endA module for basic 2x2 (+2) matrix operations.
module Winding : sig ... endmodule FloatOps : sig ... endA module for swapping the default integer operators with floating point operators.
Saves all context state to be restored later. Must have a corresponding restore call in order to be correct. Saves and restores happen in LIFO (stack) order.
Restore a previously saved state. Must have a previous save call in order to be correct. Saves and restores happen in LIFO (stack) order.
Reset the current state to default settings. Only affects the current state, not an previously saved states. Does not clear any saved states.
Start a fresh frame. Resets all state.
Cancels a built up frame. Should call begin_frame to start a new render.
Flush and render the frame to the screen. Nothing is drawn until this method is called. Alternatively can call cancel_frame to not render the build up frame.
Fill the last created path. You can call both stroke and fill for a given path. The path is not cleared until Path.begin_ is called again.
Stroke the last created path. You can call both stroke and fill for a given path. The path is not cleared until Path.begin_ is called again
Module for text rendering. Text is rendered using a glyph bitmap. The default bitmap size is 2048x2048. It is possible to run out of space in this bitmap so try to be conservative with font sizes and number of fonts. Glyphs are grouped by font, size, and blur. A glyph will be rendered once per combination of properties.