Monado OpenXR Runtime
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. More...
 
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. More...
 
uint32_t width
 Dimensions. More...
 
uint32_t height
 
float scale
 Scale. More...
 
bool rotate_180
 Rotate the image by 180 degrees. More...
 
uint32_t active_index
 Set to GUI_WIDGET_SWAPCHAIN_INVALID_INDEX on invalid. More...
 
bool flip_y
 Should the image be flipped in y direction. More...
 

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

Set to GUI_WIDGET_SWAPCHAIN_INVALID_INDEX on invalid.

Referenced by gui_widget_native_images_init(), gui_widget_native_images_render(), and gui_widget_native_images_to_background().

◆ 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

Should the image be flipped in y direction.

◆ rotate_180

bool gui_widget_native_images::rotate_180

Rotate the image by 180 degrees.

◆ scale

float gui_widget_native_images::scale

Scale.

◆ texture_count

uint32_t gui_widget_native_images::texture_count

The current number of images that has been imported.

◆ width

uint32_t gui_widget_native_images::width

Dimensions.


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