lv_gltf_environment.h

API reference for lv_gltf_environment.h

Report on GitHub
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_gltf_environment_private.h

Functions

lv_gltf_ibl_sampler_set_cube_map_pixel_resolution

Set the resolution for each cubemap face

 
void lv_gltf_ibl_sampler_set_cube_map_pixel_resolution(lv_gltf_ibl_sampler_t *sampler, uint32_t resolution)
Parameters
NameTypeDescription
samplerlv_gltf_ibl_sampler_t *
resolutionuint32_tof each cube map face in pixels (recommended: 64-512 for embedded)

lv_gltf_environment_set_angle

Set the rotation angle of the environment map

 
void lv_gltf_environment_set_angle(lv_gltf_environment_t *env, float angle)
Parameters
NameTypeDescription
envlv_gltf_environment_t *pointer to the environment
anglefloatrotation angle in degrees

Macros

LV_GLTF_DEFAULT_CUBE_MAP_RESOLUTION

 
#define LV_GLTF_DEFAULT_CUBE_MAP_RESOLUTION 128

Dependencies

Indirect dependencies

How is this guide?

Last updated on

On this page