filename | src/drivers/video_egl.h |
changeset | 1296:30ecee61f811 |
prev | 1287:dac8f363f1fe |
author | nkeynes |
date | Fri May 29 18:47:05 2015 +1000 (8 years ago) |
permissions | -rw-r--r-- |
last change | Fix test case |
file | annotate | diff | log | raw |
nkeynes@1245 | 1 | /** |
nkeynes@1245 | 2 | * $Id$ |
nkeynes@1245 | 3 | * |
nkeynes@1245 | 4 | * Window management using EGL. |
nkeynes@1245 | 5 | * |
nkeynes@1245 | 6 | * Copyright (c) 2012 Nathan Keynes. |
nkeynes@1245 | 7 | * |
nkeynes@1245 | 8 | * This program is free software; you can redistribute it and/or modify |
nkeynes@1245 | 9 | * it under the terms of the GNU General Public License as published by |
nkeynes@1245 | 10 | * the Free Software Foundation; either version 2 of the License, or |
nkeynes@1245 | 11 | * (at your option) any later version. |
nkeynes@1245 | 12 | * |
nkeynes@1245 | 13 | * This program is distributed in the hope that it will be useful, |
nkeynes@1245 | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
nkeynes@1245 | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
nkeynes@1245 | 16 | * GNU General Public License for more details. |
nkeynes@1245 | 17 | */ |
nkeynes@1245 | 18 | |
nkeynes@1245 | 19 | |
nkeynes@1245 | 20 | #ifndef lxdream_video_egl_H |
nkeynes@1245 | 21 | #define lxdream_video_egl_H 1 |
nkeynes@1245 | 22 | |
nkeynes@1296 | 23 | #include <glib.h> |
nkeynes@1245 | 24 | |
nkeynes@1245 | 25 | #ifdef __cplusplus |
nkeynes@1245 | 26 | extern "C" { |
nkeynes@1245 | 27 | #endif |
nkeynes@1245 | 28 | |
nkeynes@1245 | 29 | #include <EGL/egl.h> |
nkeynes@1245 | 30 | |
nkeynes@1287 | 31 | gboolean video_egl_init(); |
nkeynes@1287 | 32 | gboolean video_egl_init_context(EGLNativeWindowType window, int format); |
nkeynes@1287 | 33 | gboolean video_egl_init_driver(display_driver_t driver); |
nkeynes@1287 | 34 | void video_egl_shutdown(); |
nkeynes@1245 | 35 | gboolean video_egl_set_window(EGLNativeWindowType window, int width, int height, int format); |
nkeynes@1245 | 36 | void video_egl_clear_window(); |
nkeynes@1245 | 37 | |
nkeynes@1245 | 38 | #ifdef __cplusplus |
nkeynes@1245 | 39 | } |
nkeynes@1245 | 40 | #endif |
nkeynes@1245 | 41 | |
nkeynes@1245 | 42 | #endif /* !lxdream_video_egl_H */ |
.