Skip to content
  • Andy Green's avatar
    lws_display: add display list / DLO support · e3dca87f
    Andy Green authored
    This adds optional display list support to lws_display, using DLOs (Display
    List Objects).  DLOs for rectangle / rounded rectangle (with circle as the
    degenerate case), PNGs, JPEG and compressed, antialiased bitmapped fonts
    and text primitives are provided.
    
    Logical DLOs are instantiated on heap and listed into an lws_display_list
    owner, DLOs handle attributes like position, bounding box, colour +
    opacity, and local error diffusion backing buffer.
    
    When the display list is complete, it can be rasterized a line at a time,
    with scoped error diffusion resolved, such that no allocation for the
    framebuffer is required at any point.  DLOs are freed as the rasterization
    moves beyond their bounding box.
    
    Adds a platform registry binding names and other metadata to lws_display
    fonts / PNGs / JPEGs.  Provides registration, destruction and best match
    selection apis.
    e3dca87f
This project is licensed under the Apache License 2.0. Learn more