# lv_gltf_view_internal.h (/api/libs/gltf/gltf_view/lv_gltf_view_internal_h)



<ApiSummary structs="4" macros="11" />

Structs [#structs]

<ApiMember kind="struct" name="lv_gltf_renwin_state_t">
  lv_gltf_renwin_state_t [#lv_gltf_renwin_state_t]

  | Member         | Type                        | Description |
  | -------------- | --------------------------- | ----------- |
  | `texture`      | <ApiLink name="uint32_t" /> |             |
  | `renderbuffer` | <ApiLink name="uint32_t" /> |             |
  | `framebuffer`  | `unsigned`                  |             |
</ApiMember>

<ApiMember kind="struct" name="lv_gltf_view_state_t">
  lv_gltf_view_state_t [#lv_gltf_view_state_t]

  | Member                       | Type                                      | Description |
  | ---------------------------- | ----------------------------------------- | ----------- |
  | `render_state`               | <ApiLink name="lv_gltf_renwin_state_t" /> |             |
  | `opaque_render_state`        | <ApiLink name="lv_gltf_renwin_state_t" /> |             |
  | `opaque_frame_buffer_width`  | <ApiLink name="uint64_t" />               |             |
  | `opaque_frame_buffer_height` | <ApiLink name="uint64_t" />               |             |
  | `material_variant`           | <ApiLink name="uint32_t" />               |             |
  | `render_state_ready`         | <ApiLink name="bool" />                   |             |
  | `render_opaque_buffer`       | <ApiLink name="bool" />                   |             |
</ApiMember>

<ApiMember kind="struct" name="lv_gltf_view_desc_t">
  lv_gltf_view_desc_t [#lv_gltf_view_desc_t]

  | Member                  | Type                                 | Description                                                      |
  | ----------------------- | ------------------------------------ | ---------------------------------------------------------------- |
  | `pitch`                 | `float`                              |                                                                  |
  | `yaw`                   | `float`                              |                                                                  |
  | `distance`              | `float`                              |                                                                  |
  | `fov`                   | `float`                              |                                                                  |
  | `render_width`          | <ApiLink name="int32_t" />           |                                                                  |
  | `render_height`         | <ApiLink name="int32_t" />           |                                                                  |
  | `focal_x`               | `float`                              |                                                                  |
  | `focal_y`               | `float`                              |                                                                  |
  | `focal_z`               | `float`                              |                                                                  |
  | `frame_was_antialiased` | <ApiLink name="bool" />              |                                                                  |
  | `aa_mode`               | <ApiLink name="lv_gltf_aa_mode_t" /> |                                                                  |
  | `bg_mode`               | <ApiLink name="lv_gltf_bg_mode_t" /> |                                                                  |
  | `blur_bg`               | `float`                              |                                                                  |
  | `env_pow`               | `float`                              | How much to blur the environment background, between 0.0 and 1.0 |
  | `exposure`              | `float`                              | Environmental brightness, 1.8 by default                         |
</ApiMember>

<ApiMember kind="struct" name="lv_opengl_state_t">
  lv_opengl_state_t [#lv_opengl_state_t]

  | Member                 | Type         | Description |
  | ---------------------- | ------------ | ----------- |
  | `blend_enabled`        | `GLboolean`  |             |
  | `blend_src`            | `GLint`      |             |
  | `blend_dst`            | `GLint`      |             |
  | `blend_equation`       | `GLint`      |             |
  | `depth_test_enabled`   | `GLboolean`  |             |
  | `depth_mask`           | `GLboolean`  |             |
  | `depth_func`           | `GLint`      |             |
  | `cull_face_enabled`    | `GLboolean`  |             |
  | `cull_face_mode`       | `GLint`      |             |
  | `front_face`           | `GLint`      |             |
  | `stencil_test_enabled` | `GLboolean`  |             |
  | `stencil_mask`         | `GLuint`     |             |
  | `stencil_func`         | `GLint`      |             |
  | `stencil_ref`          | `GLint`      |             |
  | `stencil_value_mask`   | `GLuint`     |             |
  | `current_vao`          | `GLuint`     |             |
  | `current_vbo`          | `GLuint`     |             |
  | `current_ibo`          | `GLuint`     |             |
  | `current_program`      | `GLuint`     |             |
  | `active_texture`       | `GLint`      |             |
  | `bound_texture_2d`     | `GLuint`     |             |
  | `viewport`             | `GLint[4]`   |             |
  | `scissor_test_enabled` | `GLboolean`  |             |
  | `scissor_box`          | `GLint[4]`   |             |
  | `clear_depth`          | `GLfloat`    |             |
  | `clear_color`          | `GLfloat[4]` |             |
</ApiMember>

Macros [#macros]

<ApiMember kind="macro" name="LV_GLTF_GAMMA_BRIGHTEST" file="libs/gltf/gltf_view/lv_gltf_view_internal.h" line="34" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/gltf_view/lv_gltf_view_internal.h#L34">
  LV_GLTF_GAMMA_BRIGHTEST [#lv_gltf_gamma_brightest]

  ```c title=" " lineNumbers=1
  #define LV_GLTF_GAMMA_BRIGHTEST "3.5"
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GLTF_GAMMA_BRIGHTER" file="libs/gltf/gltf_view/lv_gltf_view_internal.h" line="35" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/gltf_view/lv_gltf_view_internal.h#L35">
  LV_GLTF_GAMMA_BRIGHTER [#lv_gltf_gamma_brighter]

  ```c title=" " lineNumbers=1
  #define LV_GLTF_GAMMA_BRIGHTER "3.0"
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GLTF_GAMMA_BRIGHT" file="libs/gltf/gltf_view/lv_gltf_view_internal.h" line="36" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/gltf_view/lv_gltf_view_internal.h#L36">
  LV_GLTF_GAMMA_BRIGHT [#lv_gltf_gamma_bright]

  ```c title=" " lineNumbers=1
  #define LV_GLTF_GAMMA_BRIGHT "2.6"
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GLTF_GAMMA_STANDARD" file="libs/gltf/gltf_view/lv_gltf_view_internal.h" line="37" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/gltf_view/lv_gltf_view_internal.h#L37">
  LV_GLTF_GAMMA_STANDARD [#lv_gltf_gamma_standard]

  ```c title=" " lineNumbers=1
  #define LV_GLTF_GAMMA_STANDARD "2.2"
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GLTF_GAMMA_DARK" file="libs/gltf/gltf_view/lv_gltf_view_internal.h" line="38" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/gltf_view/lv_gltf_view_internal.h#L38">
  LV_GLTF_GAMMA_DARK [#lv_gltf_gamma_dark]

  ```c title=" " lineNumbers=1
  #define LV_GLTF_GAMMA_DARK "1.8"
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GLTF_GAMMA_DARKER" file="libs/gltf/gltf_view/lv_gltf_view_internal.h" line="39" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/gltf_view/lv_gltf_view_internal.h#L39">
  LV_GLTF_GAMMA_DARKER [#lv_gltf_gamma_darker]

  ```c title=" " lineNumbers=1
  #define LV_GLTF_GAMMA_DARKER "1.3"
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GLTF_GAMMA_DARKEST" file="libs/gltf/gltf_view/lv_gltf_view_internal.h" line="40" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/gltf_view/lv_gltf_view_internal.h#L40">
  LV_GLTF_GAMMA_DARKEST [#lv_gltf_gamma_darkest]

  ```c title=" " lineNumbers=1
  #define LV_GLTF_GAMMA_DARKEST "0.8"
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GLTF_DISTANCE_SCALE_FACTOR" file="libs/gltf/gltf_view/lv_gltf_view_internal.h" line="42" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/gltf_view/lv_gltf_view_internal.h#L42">
  LV_GLTF_DISTANCE_SCALE_FACTOR [#lv_gltf_distance_scale_factor]

  ```c title=" " lineNumbers=1
  #define LV_GLTF_DISTANCE_SCALE_FACTOR 2.5f
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GLTF_TRANSMISSION_PASS_SIZE" file="libs/gltf/gltf_view/lv_gltf_view_internal.h" line="43" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/gltf_view/lv_gltf_view_internal.h#L43">
  LV_GLTF_TRANSMISSION_PASS_SIZE [#lv_gltf_transmission_pass_size]

  ```c title=" " lineNumbers=1
  #define LV_GLTF_TRANSMISSION_PASS_SIZE 256
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GLTF_LINEAR_OUTPUT" file="libs/gltf/gltf_view/lv_gltf_view_internal.h" line="51" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/gltf_view/lv_gltf_view_internal.h#L51">
  LV_GLTF_LINEAR_OUTPUT [#lv_gltf_linear_output]

  ```c title=" " lineNumbers=1
  #define LV_GLTF_LINEAR_OUTPUT 1
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GLTF_TONEMAP_GAMMA" file="libs/gltf/gltf_view/lv_gltf_view_internal.h" line="58" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/gltf/gltf_view/lv_gltf_view_internal.h#L58">
  LV_GLTF_TONEMAP_GAMMA [#lv_gltf_tonemap_gamma]

  ```c title=" " lineNumbers=1
  #define LV_GLTF_TONEMAP_GAMMA LV_GLTF_GAMMA_STANDARD
  ```
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_conf_internal.h&#x22;, &#x22;lv_gltf.h&#x22;, &#x22;lv_types.h&#x22;, &#x22;lv_opengl_shader_internal.h&#x22;, &#x22;lv_3dtexture_private.h&#x22;, &#x22;lv_gltf_data_internal.h&#x22;]" transitiveIncludes="[&#x22;lv_3dmath.h&#x22;, &#x22;lv_3dtexture.h&#x22;, &#x22;lv_anim.h&#x22;, &#x22;lv_area.h&#x22;, &#x22;lv_array.h&#x22;, &#x22;lv_assert.h&#x22;, &#x22;lv_bidi.h&#x22;, &#x22;lv_color.h&#x22;, &#x22;lv_color_op.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_display.h&#x22;, &#x22;lv_draw.h&#x22;, &#x22;lv_draw_arc.h&#x22;, &#x22;lv_draw_blur.h&#x22;, &#x22;lv_draw_buf.h&#x22;, &#x22;lv_draw_image.h&#x22;, &#x22;lv_draw_label.h&#x22;, &#x22;lv_draw_line.h&#x22;, &#x22;lv_draw_rect.h&#x22;, &#x22;lv_draw_triangle.h&#x22;, &#x22;lv_event.h&#x22;, &#x22;lv_ext_data.h&#x22;, &#x22;lv_flex.h&#x22;, &#x22;lv_font.h&#x22;, &#x22;lv_fs.h&#x22;, &#x22;lv_gltf_model.h&#x22;, &#x22;lv_gltf_model_loader.h&#x22;, &#x22;lv_gltf_model_node.h&#x22;, &#x22;lv_grad.h&#x22;, &#x22;lv_grid.h&#x22;, &#x22;lv_group.h&#x22;, &#x22;lv_image_decoder.h&#x22;, &#x22;lv_image_dsc.h&#x22;, &#x22;lv_indev.h&#x22;, &#x22;lv_layout.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_matrix.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_obj.h&#x22;, &#x22;lv_obj_class.h&#x22;, &#x22;lv_obj_draw.h&#x22;, &#x22;lv_obj_event.h&#x22;, &#x22;lv_obj_pos.h&#x22;, &#x22;lv_obj_private.h&#x22;, &#x22;lv_obj_property.h&#x22;, &#x22;lv_obj_property_names.h&#x22;, &#x22;lv_obj_scroll.h&#x22;, &#x22;lv_obj_style.h&#x22;, &#x22;lv_obj_style_gen.h&#x22;, &#x22;lv_obj_tree.h&#x22;, &#x22;lv_opengles_debug.h&#x22;, &#x22;lv_opengles_private.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_profiler.h&#x22;, &#x22;lv_profiler_builtin.h&#x22;, &#x22;lv_rb.h&#x22;, &#x22;lv_rb_private.h&#x22;, &#x22;lv_sprintf.h&#x22;, &#x22;lv_string.h&#x22;, &#x22;lv_style.h&#x22;, &#x22;lv_style_gen.h&#x22;, &#x22;lv_style_properties.h&#x22;, &#x22;lv_symbol_def.h&#x22;, &#x22;lv_text.h&#x22;, &#x22;lv_tick.h&#x22;, &#x22;lv_timer.h&#x22;]" />
