Monado OpenXR Runtime
comp_gl_xlib_client.c File Reference

Xlib 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_xlib.h"
#include "client/comp_gl_xlib_client.h"
#include "client/comp_gl_memobj_swapchain.h"
#include "ogl/ogl_api.h"
#include "ogl/glx_api.h"
Include dependency graph for comp_gl_xlib_client.c:

Macros

#define CHECK_REQUIRED_EXTENSION(EXT)
 

Typedefs

typedef void(* void_ptr_func) (void)
 

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_xlib_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)
 
void_ptr_func glXGetProcAddress (const char *procName)
 
struct client_gl_xlib_compositorclient_gl_xlib_compositor_create (struct xrt_compositor_native *xcn, Display *xDisplay, uint32_t visualid, GLXFBConfig glxFBConfig, GLXDrawable glxDrawable, GLXContext glxContext)
 

Detailed Description

Xlib client side glue to compositor implementation.

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

Macro Definition Documentation

◆ CHECK_REQUIRED_EXTENSION

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