2016-08-17 22:18:28 -04:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Red Hat Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
* 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* Written by:
|
|
|
|
* Jonas Ådahl <jadahl@gmail.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef META_EGL_H
|
|
|
|
#define META_EGL_H
|
|
|
|
|
|
|
|
#include <EGL/egl.h>
|
2016-08-17 23:05:20 -04:00
|
|
|
#include <EGL/eglext.h>
|
2016-08-17 22:18:28 -04:00
|
|
|
#include <glib-object.h>
|
|
|
|
|
|
|
|
#define META_TYPE_EGL (meta_egl_get_type ())
|
|
|
|
G_DECLARE_FINAL_TYPE (MetaEgl, meta_egl, META, EGL, GObject)
|
|
|
|
|
2016-08-17 23:05:20 -04:00
|
|
|
gboolean meta_egl_has_extensions (MetaEgl *egl,
|
|
|
|
EGLDisplay display,
|
|
|
|
char ***missing_extensions,
|
|
|
|
char *first_extension,
|
|
|
|
...);
|
|
|
|
|
2016-09-29 10:26:24 -04:00
|
|
|
gboolean meta_egl_initialize (MetaEgl *egl,
|
|
|
|
EGLDisplay display,
|
|
|
|
GError **error);
|
|
|
|
|
2016-08-30 23:25:45 -04:00
|
|
|
gboolean meta_egl_choose_config (MetaEgl *egl,
|
|
|
|
EGLDisplay display,
|
|
|
|
const EGLint *attrib_list,
|
|
|
|
EGLConfig *chosen_config,
|
|
|
|
GError **error);
|
|
|
|
|
|
|
|
EGLSurface meta_egl_create_pbuffer_surface (MetaEgl *egl,
|
|
|
|
EGLDisplay display,
|
|
|
|
EGLConfig config,
|
|
|
|
const EGLint *attrib_list,
|
|
|
|
GError **error);
|
|
|
|
|
2016-10-28 07:15:02 -04:00
|
|
|
EGLDisplay meta_egl_get_platform_display (MetaEgl *egl,
|
|
|
|
EGLenum platform,
|
|
|
|
void *native_display,
|
|
|
|
const EGLint *attrib_list,
|
|
|
|
GError **error);
|
|
|
|
|
2016-08-17 22:18:28 -04:00
|
|
|
#endif /* META_EGL_H */
|