Monado OpenXR Runtime
gui_ogl.c File Reference

OpenGL helper functions for drawing GUI elements. More...

#include "math/m_api.h"
#include "gui_ogl.h"
#include "gui_imgui.h"
Include dependency graph for gui_ogl.c:

Functions

static void get_uvs (ImVec2 *uv0, ImVec2 *uv1, bool rotate_180, bool flip_y)
 
void gui_ogl_draw_image (uint32_t width, uint32_t height, uint32_t tex_id, float scale, bool rotate_180, bool flip_y)
 Draw the given textures as igImage, scale of 1.0f == 100%. More...
 
void gui_ogl_draw_background (uint32_t width, uint32_t height, uint32_t tex_id, bool rotate_180, bool flip_y)
 Draw the given texture to the background of the current OS window. More...
 

Detailed Description

OpenGL helper functions for drawing GUI elements.

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