| /* Copyright (C) 2011 The Android Open Source Project |
| ** |
| ** This software is licensed under the terms of the GNU General Public |
| ** License version 2, as published by the Free Software Foundation, and |
| ** may be copied, distributed, and modified under those terms. |
| ** |
| ** 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. |
| */ |
| #ifndef ANDROID_OPENGLES_H |
| #define ANDROID_OPENGLES_H |
| |
| #define ANDROID_OPENGLES_BASE_PORT 22468 |
| |
| /* Call this function to initialize the hardware opengles emulation. |
| * This function will abort if we can't find the corresponding host |
| * libraries through dlopen() or equivalent. |
| */ |
| int android_initOpenglesEmulation(void); |
| |
| /* Tries to start the renderer process. Returns 0 on success, -1 on error. |
| * At the moment, this must be done before the VM starts. |
| */ |
| int android_startOpenglesRenderer(int width, int height); |
| |
| int android_showOpenglesWindow(void* window, int x, int y, int width, int height, float rotation); |
| |
| int android_hideOpenglesWindow(void); |
| |
| void android_redrawOpenglesWindow(void); |
| |
| /* Stop the renderer process */ |
| void android_stopOpenglesRenderer(void); |
| |
| #endif /* ANDROID_OPENGLES_H */ |