MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_opengl_owned_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 texture
 
uint32_t target
 
uint32_t internal_format
 
uint32_t format
 
uint32_t type
 

Detailed Description

OpenGL frame acquired from a session-owned texture target.

Field Documentation

◆ format

uint32_t mln_opengl_owned_texture_frame::format

OpenGL pixel format, such as GL_RGBA.

◆ frame_id

uint64_t mln_opengl_owned_texture_frame::frame_id

Opaque frame identity used to reject stale releases.

◆ generation

uint64_t mln_opengl_owned_texture_frame::generation

Session generation that produced this frame.

◆ height

uint32_t mln_opengl_owned_texture_frame::height

Physical OpenGL texture height in device pixels.

◆ internal_format

uint32_t mln_opengl_owned_texture_frame::internal_format

OpenGL internal format, such as GL_RGBA8.

◆ scale_factor

double mln_opengl_owned_texture_frame::scale_factor

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

◆ target

uint32_t mln_opengl_owned_texture_frame::target

OpenGL texture target. GL_TEXTURE_2D is the expected target.

◆ texture

uint32_t mln_opengl_owned_texture_frame::texture

Borrowed OpenGL texture object name. Valid until frame release.

◆ type

uint32_t mln_opengl_owned_texture_frame::type

OpenGL pixel type, such as GL_UNSIGNED_BYTE.

◆ width

uint32_t mln_opengl_owned_texture_frame::width

Physical OpenGL texture width in device pixels.


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