MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_opengl_texture_frame Struct Reference

#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

Detailed Description

OpenGL frame acquired from a texture ring.

Field Documentation

◆ format

uint32_t mln_opengl_texture_frame::format

OpenGL pixel format, such as GL_RGBA. Zero for a borrowed texture.

◆ frame_id

uint64_t mln_opengl_texture_frame::frame_id

Opaque identity of this frame.

◆ generation

uint64_t mln_opengl_texture_frame::generation

Session generation that produced this frame.

◆ height

uint32_t mln_opengl_texture_frame::height

Physical OpenGL texture height in device pixels.

◆ internal_format

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.

◆ scale_factor

double mln_opengl_texture_frame::scale_factor

UI-to-device pixel scale used for this frame.

◆ slot

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.

◆ target

uint32_t mln_opengl_texture_frame::target

OpenGL texture target. GL_TEXTURE_2D is the expected target.

◆ texture

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.

◆ type

uint32_t mln_opengl_texture_frame::type

OpenGL pixel type, such as GL_UNSIGNED_BYTE. Zero for a borrowed texture.

◆ width

uint32_t mln_opengl_texture_frame::width

Physical OpenGL texture width in device pixels.


The documentation for this struct was generated from the following file: