Monado OpenXR Runtime
comp_gl_win32_client.c File Reference

Win32 client side glue to compositor implementation. More...

#include <stdio.h>
#include <stdlib.h>
#include "util/u_misc.h"
#include "util/u_logging.h"
#include "xrt/xrt_gfx_win32.h"
#include "client/comp_gl_win32_client.h"
#include "client/comp_gl_memobj_swapchain.h"
#include "ogl/ogl_api.h"
#include "ogl/wgl_api.h"
Include dependency graph for comp_gl_win32_client.c:

Macros

#define CHECK_REQUIRED_EXTENSION(EXT)
 

Functions

static bool context_matches (const struct client_gl_context *a, const struct client_gl_context *b)
 
static void context_save_current (struct client_gl_context *current_ctx)
 
static bool context_make_current (const struct client_gl_context *ctx_to_make_current)
 
static void client_gl_win32_compositor_destroy (struct xrt_compositor *xc)
 
static xrt_result_t client_gl_context_begin_locked (struct xrt_compositor *xc, enum client_gl_context_reason reason)
 
static void client_gl_context_end_locked (struct xrt_compositor *xc, enum client_gl_context_reason reason)
 
static GLADapiproc client_gl_get_proc_addr (void *userptr, const char *name)
 
struct client_gl_win32_compositorclient_gl_win32_compositor_create (struct xrt_compositor_native *xcn, void *hDC, void *hGLRC)
 

Detailed Description

Macro Definition Documentation

◆ CHECK_REQUIRED_EXTENSION

#define CHECK_REQUIRED_EXTENSION (   EXT)
Value:
do { \
if (!GLAD_GL_##EXT) { \
U_LOG_E("%s - Required OpenGL extension GL_" #EXT " not available", __func__); \
FreeLibrary(opengl); \
return NULL; \
} \
} while (0)