Monado OpenXR Runtime
gui_widget_native_images.h File Reference

Swapchain rendering helper code. More...

#include "xrt/xrt_compositor.h"
#include "xrt/xrt_defines.h"
#include "xrt/xrt_limits.h"
Include dependency graph for gui_widget_native_images.h:

Go to the source code of this file.

Data Structures

struct  gui_widget_native_images
 A small widget that interfaces a u_native_images_debug struct, caching the imports from the listed xrt_image_native list. More...
 
struct  gui_widget_native_images_record
 A single record in a native image widget storage. More...
 
struct  gui_widget_native_images_storage
 Helper struct to cache gui_widget_native_images. More...
 

Macros

#define GUI_WIDGET_SWAPCHAIN_INVALID_INDEX   0xffffffff
 

Functions

void gui_widget_native_images_init (struct gui_widget_native_images *gwni)
 Initialise a embeddable record window. More...
 
void gui_widget_native_images_update (struct gui_widget_native_images *gwni, struct u_native_images_debug *unid)
 Update the swapchain widget. More...
 
void gui_widget_native_images_render (struct gui_widget_native_images *gwni, struct gui_program *p)
 Renders all controls of a record window. More...
 
void gui_widget_native_images_to_background (struct gui_widget_native_images *gwni, struct gui_program *p)
 Draw the sink image as the background to the background of the render view. More...
 
void gui_widget_native_images_close (struct gui_widget_native_images *gwni)
 Frees all resources associated with a record window. More...
 
struct gui_widget_native_imagesgui_widget_native_images_storage_ensure (struct gui_widget_native_images_storage *gwnis, struct u_native_images_debug *unid)
 Search the storage for the matching record for the debug swapchain and return it, if not found and there is room create it. More...
 
struct gui_widget_native_imagesgui_widget_native_images_storage_close (struct gui_widget_native_images_storage *gwnis, struct u_native_images_debug *unid)
 Close the storage. More...
 

Detailed Description

Swapchain rendering helper code.

Author
Jakob Bornecrantz jakob.nosp@m.@col.nosp@m.labor.nosp@m.a.co.nosp@m.m