|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <texture.h>
Data Fields | |
| uint32_t | size |
| mln_logical_size | logical_size |
| uint32_t | physical_width |
| uint32_t | physical_height |
| mln_open_gl_context_descriptor | context |
| const mln_open_gl_borrowed_texture * | textures |
| size_t | texture_count |
| uint32_t | target |
A ring of your OpenGL textures, for mln_map_attach_open_gl_borrowed_texture().
logical_size sets the map's size. physical_width and physical_height give the textures' size in pixels, which is usually logical_size times the map's scale factor. The context must use MLN_OPEN_GL_CONTEXT_OWNERSHIP_SHARED. Each texture must be in your context's share group, with storage of that size. The ring holds up to MLN_TEXTURE_RING_MAX_DEPTH distinct textures.
The session uses the textures until a replacement or release of the target completes, a detach or release of the session completes, or an abandon of it returns.
| mln_open_gl_context_descriptor mln_open_gl_borrowed_texture_descriptor::context |
| mln_logical_size mln_open_gl_borrowed_texture_descriptor::logical_size |
| uint32_t mln_open_gl_borrowed_texture_descriptor::physical_height |
| uint32_t mln_open_gl_borrowed_texture_descriptor::physical_width |
| uint32_t mln_open_gl_borrowed_texture_descriptor::size |
| uint32_t mln_open_gl_borrowed_texture_descriptor::target |
The textures' target. It must be GL_TEXTURE_2D.
| size_t mln_open_gl_borrowed_texture_descriptor::texture_count |
| const mln_open_gl_borrowed_texture* mln_open_gl_borrowed_texture_descriptor::textures |