mirror of
https://libwebsockets.org/repo/libwebsockets
synced 2024-11-22 00:57:52 +00:00
e3dca87f23
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.
16 lines
297 B
C++
16 lines
297 B
C++
// Write out the encoded data in C source code files for the mf_rlefont format.
|
|
|
|
#pragma once
|
|
|
|
#include "datafile.hh"
|
|
#include "encode_rlefont.hh"
|
|
#include <iostream>
|
|
|
|
namespace mcufont {
|
|
namespace rlefont {
|
|
|
|
void write_source(std::ostream &out, std::string name, const DataFile &datafile);
|
|
|
|
} }
|
|
|