aboutsummaryrefslogtreecommitdiff
path: root/examples/egl_common.h
blob: f12c05be7bf95408ffb0b8dd3e46ab51aef63d01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _EGL_COMMON_H
#define _EGL_COMMON_H
#endif

#include <stdbool.h>
#include <wayland-client.h>

#include <EGL/egl.h>
#include <EGL/eglext.h>

extern EGLDisplay egl_display;
extern EGLConfig egl_config;
extern EGLContext egl_context;

extern PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC eglCreatePlatformWindowSurfaceEXT;

bool egl_init(struct wl_display *display);

void egl_finish(void);