Monado OpenXR Runtime
gui_widget_native_images.c File Reference

Swapchain rendering helper code. More...

#include "ogl/ogl_api.h"
#include "ogl/ogl_helpers.h"
#include "util/u_misc.h"
#include "util/u_logging.h"
#include "util/u_native_images_debug.h"
#include "gui_ogl.h"
#include "gui_imgui.h"
#include "gui_widget_native_images.h"
#include <assert.h>
Include dependency graph for gui_widget_native_images.c:

Functions

static void destroy_resources (struct gui_widget_native_images *gwni)
 
static void recreate_locked (struct gui_widget_native_images *gwni, struct u_native_images_debug *unid)
 
static void window_draw_misc (struct gui_widget_native_images *gwni)
 
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...
 

Detailed Description

Swapchain rendering helper code.

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