2022-09-29 06:55:25 +00:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// Copyright (c) Yuxuan Shui <yshuiv7@gmail.com>
|
|
|
|
#pragma once
|
2024-02-10 20:36:02 +00:00
|
|
|
#include <epoxy/egl.h>
|
|
|
|
#include <epoxy/gl.h>
|
2023-06-18 16:27:22 +00:00
|
|
|
#include <stdbool.h>
|
2022-09-29 06:55:25 +00:00
|
|
|
#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;
|
|
|
|
|
|
|
|
void eglext_init(EGLDisplay);
|