blob: b31ce112fe9eff49604f4b83190040c8aab9575e [file] [log] [blame]
David 'Digit' Turnercb88e792011-08-26 01:35:14 +02001/* Copyright (C) 2011 The Android Open Source Project
2**
3** This software is licensed under the terms of the GNU General Public
4** License version 2, as published by the Free Software Foundation, and
5** may be copied, distributed, and modified under those terms.
6**
7** This program is distributed in the hope that it will be useful,
8** but WITHOUT ANY WARRANTY; without even the implied warranty of
9** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10** GNU General Public License for more details.
11*/
12#ifndef ANDROID_OPENGLES_H
13#define ANDROID_OPENGLES_H
14
15#define ANDROID_OPENGLES_BASE_PORT 22468
16
17/* Call this function to initialize the hardware opengles emulation.
18 * This function will abort if we can't find the corresponding host
19 * libraries through dlopen() or equivalent.
20 */
21int android_initOpenglesEmulation(void);
22
23/* Tries to start the renderer process. Returns 0 on success, -1 on error.
24 * At the moment, this must be done before the VM starts.
25 */
26int android_startOpenglesRenderer(int width, int height);
27
28int android_showOpenglesWindow(void* window, int x, int y, int width, int height, float rotation);
29
30int android_hideOpenglesWindow(void);
31
32void android_redrawOpenglesWindow(void);
33
34/* Stop the renderer process */
35void android_stopOpenglesRenderer(void);
36
37#endif /* ANDROID_OPENGLES_H */