|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <apple.h>
Data Fields | |
| uint32_t | size |
| mln_logical_size | logical_size |
| uint32_t | buffer_count |
| mln_metal_context_descriptor | context |
A ring of IOSurfaces that the library allocates, for mln_map_attach_io_surface_ring().
Each surface has the map's size in pixels, logical_size times the map's scale factor, and the pixel format kCVPixelFormatType_32BGRA, which Metal names MTLPixelFormatBGRA8Unorm.
| uint32_t mln_io_surface_ring_descriptor::buffer_count |
How many surfaces the ring has, from 1 to 8.
| mln_metal_context_descriptor mln_io_surface_ring_descriptor::context |
The MTLDevice to render with. A null device picks the system's default.
| mln_logical_size mln_io_surface_ring_descriptor::logical_size |
| uint32_t mln_io_surface_ring_descriptor::size |