Monado OpenXR Runtime
Loading...
Searching...
No Matches
gui_widget_native_images Struct Reference

A small widget that interfaces a u_native_images_debug struct, caching the imports from the listed xrt_image_native list. More...

#include <gui/gui_widget_native_images.h>

Collaboration diagram for gui_widget_native_images:

Data Fields

xrt_limited_unique_id_t cache_id
 To check if swapchain has been changed.
 
uint32_t memories [XRT_MAX_SWAPCHAIN_IMAGES]
 
uint32_t textures [XRT_MAX_SWAPCHAIN_IMAGES]
 
uint32_t texture_count
 The current number of images that has been imported.
 
uint32_t width
 Dimensions.
 
uint32_t height
 
float scale
 Scale.
 
bool rotate_180
 Rotate the image by 180 degrees.
 
uint32_t active_index
 Set to GUI_WIDGET_SWAPCHAIN_INVALID_INDEX on invalid.
 
bool flip_y
 Should the image be flipped in y direction.
 

Detailed Description

A small widget that interfaces a u_native_images_debug struct, caching the imports from the listed xrt_image_native list.

Field Documentation

◆ active_index

uint32_t gui_widget_native_images::active_index

◆ cache_id

xrt_limited_unique_id_t gui_widget_native_images::cache_id

To check if swapchain has been changed.

Referenced by gui_widget_native_images_update().

◆ flip_y

bool gui_widget_native_images::flip_y

◆ rotate_180

bool gui_widget_native_images::rotate_180

Rotate the image by 180 degrees.

Referenced by gui_widget_native_images_render().

◆ scale

float gui_widget_native_images::scale

◆ texture_count

uint32_t gui_widget_native_images::texture_count

The current number of images that has been imported.

Referenced by gui_widget_native_images_update().

◆ width

uint32_t gui_widget_native_images::width

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