Search
lxdream.org :: lxdream/src/drivers/video_egl.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_egl.h
changeset 1245:01e0020adf88
next1287:dac8f363f1fe
author nkeynes
date Fri Mar 02 23:49:10 2012 +1000 (8 years ago)
permissions -rw-r--r--
last change Android WIP:
* Rename gui_jni.c to gui_android.c - now quite android specific.
* Implement generic EGL driver with very minimal Java wrapper
* Run emulation in separate thread, and implement simple queue for
inter-thread communication.
* Add menu/action-bar items for start + reset
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@1245
    23
#include "glib/gtypes.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@1245
    31
gboolean video_egl_set_window(EGLNativeWindowType window, int width, int height, int format);
nkeynes@1245
    32
void video_egl_clear_window();
nkeynes@1245
    33
nkeynes@1245
    34
#ifdef __cplusplus
nkeynes@1245
    35
}
nkeynes@1245
    36
#endif
nkeynes@1245
    37
nkeynes@1245
    38
#endif /* !lxdream_video_egl_H */
.