TechnologiesGraphics, Imaging & Compositing

hvf

iOSmacOStvOSwatchOSvisionOS

HVF provides low-level primitives for rendering composite vector shapes on iOS, macOS, tvOS, watchOS, and visionOS. You load shape parts with HVGLPartLoader and draw them through PartRenderer, working with segment data such as SegmentPoint, PointCoordinate, and SegmentBlendType to control how subpaths are composed. The CompositeSubpart and CompositeSubpartTranslation structures, along with axis extrema described by AxisExtremum and CompositeExtremumIndex, model how parts combine into a composite. To emit geometry, you conform to the ShapeWriter and CompositeWriter protocols or generate parts with PartGenerator, inspecting outcomes through the PartResult enumeration.

Loading and Rendering Parts 2

Load composite shape parts and render them to a drawing destination.

  • Cl
    HVGLPartLoaderiOS 18.4+
    Special loader object for an HVGL table in memory, which must be Double-aligned
  • Cl
    PartRendereriOS 18.4+
    An object that can be used to set parameters for rendering a part, to render the part, and to diagnose the results of rendering

Generating Geometry 4

Conform to writer protocols or generate parts to emit composite vector geometry.

  • Pr
    ShapeWriteriOS 18.4+
    A protocol for creating a Shape part for rendering or to build an HVGL table
  • Pr
    CompositeWriteriOS 18.4+
    Protocol for creating a Composite part for rendering or to build an HVGL table
  • Pr
    PartGeneratoriOS 18.4+
    Protocol for returning a writer object to create Shape or Composite data
  • En
    PartResultiOS 18.4+
    The result returned from a part loader

Composite Structure 4

Model how subparts combine and translate within a composite shape.

  • St
    CompositeSubpartiOS 18.4+
    A subpart in a Composite part
  • St
    CompositeSubpartTranslationiOS 18.4+
    A subpart translation in a Composite part
  • St
    CompositeExtremumIndexiOS 18.4+
    The index of an extremum rotation or translation in a Composite part
  • En
    AxisExtremumiOS 18.4+
    Which extremum within an axis

Segment Data 3

Describe the points, coordinates, and blending that define individual path segments.

  • En
    SegmentPointiOS 18.4+
    Which point within a segment
  • En
    PointCoordinateiOS 18.4+
    Which coordinate within a point
  • En
    SegmentBlendTypeiOS 18.4+
    The blend type for a segment of a path

Type Aliases 1

  • Ty
    CustomPartLoader
    Closure which loads parts from an arbitrary source
← Graphics, Imaging & Compositing