mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-25 16:31:06 +00:00
66db2ee54e
OpenGL 4.5 with software and i965 rendering back ends. issue #2488
50 lines
927 B
C
50 lines
927 B
C
/*
|
|
* \brief Genode-specific EGL platform definitions
|
|
* \author Norman Feske
|
|
* \date 2010-07-01
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2010-2017 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU Affero General Public License version 3.
|
|
*/
|
|
|
|
#ifndef __eglplatform_h_ /* include-guard named as on the other platforms */
|
|
#define __eglplatform_h_
|
|
|
|
#include <KHR/khrplatform.h>
|
|
|
|
#ifndef EGLAPI
|
|
#define EGLAPI KHRONOS_APICALL
|
|
#endif
|
|
|
|
#ifndef EGLAPIENTRY
|
|
#define EGLAPIENTRY KHRONOS_APIENTRY
|
|
#endif
|
|
#define EGLAPIENTRYP EGLAPIENTRY*
|
|
|
|
typedef long EGLNativeDisplayType;
|
|
typedef void *EGLNativePixmapType;
|
|
|
|
|
|
enum Surface_type {
|
|
WINDOW,
|
|
PIXMAP
|
|
};
|
|
|
|
struct Genode_egl_window
|
|
{
|
|
int width;
|
|
int height;
|
|
unsigned char *addr;
|
|
enum Surface_type type;
|
|
};
|
|
|
|
typedef struct Genode_egl_window *EGLNativeWindowType;
|
|
|
|
typedef khronos_int32_t EGLint;
|
|
|
|
#endif /* __eglplatform_h_ */
|