|
MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
|
#include <texture.h>
Data Fields | |
| uint64_t | generation |
| uint32_t | width |
| uint32_t | height |
| double | scale_factor |
| uint64_t | frame_id |
| uint32_t | slot |
| uint32_t | texture |
| uint32_t | target |
| uint32_t | internal_format |
| uint32_t | format |
| uint32_t | type |
OpenGL frame acquired from a texture ring.
| uint32_t mln_opengl_texture_frame::format |
OpenGL pixel format, such as GL_RGBA. Zero for a borrowed texture.
| uint64_t mln_opengl_texture_frame::frame_id |
Opaque identity of this frame.
| uint64_t mln_opengl_texture_frame::generation |
Session generation that produced this frame.
| uint32_t mln_opengl_texture_frame::height |
Physical OpenGL texture height in device pixels.
| uint32_t mln_opengl_texture_frame::internal_format |
OpenGL internal format, such as GL_RGBA8. Zero for a borrowed texture, whose format the host chose.
| double mln_opengl_texture_frame::scale_factor |
UI-to-device pixel scale used for this frame.
| uint32_t mln_opengl_texture_frame::slot |
Ring slot that holds this frame. For a borrowed target, the index of its texture in the descriptor's textures array.
| uint32_t mln_opengl_texture_frame::target |
OpenGL texture target. GL_TEXTURE_2D is the expected target.
| uint32_t mln_opengl_texture_frame::texture |
Borrowed OpenGL texture object name. Valid until frame release.
The session's context wrote the texture. A host that samples it from another context of the share group must bind it again after acquisition.
| uint32_t mln_opengl_texture_frame::type |
OpenGL pixel type, such as GL_UNSIGNED_BYTE. Zero for a borrowed texture.
| uint32_t mln_opengl_texture_frame::width |
Physical OpenGL texture width in device pixels.