mirror of https://github.com/yshui/picom.git
32 lines
674 B
C
32 lines
674 B
C
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) Yuxuan Shui <yshuiv7@gmail.com>
|
|
#pragma once
|
|
#include <EGL/egl.h>
|
|
#include <EGL/eglext.h>
|
|
#include <GL/gl.h>
|
|
#include <GL/glext.h>
|
|
#include <stdbool.h>
|
|
#include <xcb/render.h>
|
|
#include <xcb/xcb.h>
|
|
|
|
#include "compiler.h"
|
|
#include "log.h"
|
|
#include "utils.h"
|
|
#include "x.h"
|
|
|
|
struct eglext_info {
|
|
bool initialized;
|
|
bool has_EGL_MESA_query_driver;
|
|
bool has_EGL_EXT_buffer_age;
|
|
bool has_EGL_EXT_create_context_robustness;
|
|
bool has_EGL_KHR_image_pixmap;
|
|
};
|
|
|
|
extern struct eglext_info eglext;
|
|
|
|
#ifdef EGL_MESA_query_driver
|
|
extern PFNEGLGETDISPLAYDRIVERNAMEPROC eglGetDisplayDriverName;
|
|
#endif
|
|
|
|
void eglext_init(EGLDisplay);
|