1*38e8c45fSAndroid Build Coastguard Worker /* San Angeles Observation OpenGL ES version example 2*38e8c45fSAndroid Build Coastguard Worker * Copyright 2004-2005 Jetro Lauha 3*38e8c45fSAndroid Build Coastguard Worker * All rights reserved. 4*38e8c45fSAndroid Build Coastguard Worker * Web: http://iki.fi/jetro/ 5*38e8c45fSAndroid Build Coastguard Worker * 6*38e8c45fSAndroid Build Coastguard Worker * This source is free software; you can redistribute it and/or 7*38e8c45fSAndroid Build Coastguard Worker * modify it under the terms of EITHER: 8*38e8c45fSAndroid Build Coastguard Worker * (1) The GNU Lesser General Public License as published by the Free 9*38e8c45fSAndroid Build Coastguard Worker * Software Foundation; either version 2.1 of the License, or (at 10*38e8c45fSAndroid Build Coastguard Worker * your option) any later version. The text of the GNU Lesser 11*38e8c45fSAndroid Build Coastguard Worker * General Public License is included with this source in the 12*38e8c45fSAndroid Build Coastguard Worker * file LICENSE-LGPL.txt. 13*38e8c45fSAndroid Build Coastguard Worker * (2) The BSD-style license that is included with this source in 14*38e8c45fSAndroid Build Coastguard Worker * the file LICENSE-BSD.txt. 15*38e8c45fSAndroid Build Coastguard Worker * 16*38e8c45fSAndroid Build Coastguard Worker * This source is distributed in the hope that it will be useful, 17*38e8c45fSAndroid Build Coastguard Worker * but WITHOUT ANY WARRANTY; without even the implied warranty of 18*38e8c45fSAndroid Build Coastguard Worker * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files 19*38e8c45fSAndroid Build Coastguard Worker * LICENSE-LGPL.txt and LICENSE-BSD.txt for more details. 20*38e8c45fSAndroid Build Coastguard Worker * 21*38e8c45fSAndroid Build Coastguard Worker * $Id: app.h,v 1.14 2005/02/06 21:13:54 tonic Exp $ 22*38e8c45fSAndroid Build Coastguard Worker * $Revision: 1.14 $ 23*38e8c45fSAndroid Build Coastguard Worker */ 24*38e8c45fSAndroid Build Coastguard Worker 25*38e8c45fSAndroid Build Coastguard Worker #ifndef APP_H_INCLUDED 26*38e8c45fSAndroid Build Coastguard Worker #define APP_H_INCLUDED 27*38e8c45fSAndroid Build Coastguard Worker 28*38e8c45fSAndroid Build Coastguard Worker 29*38e8c45fSAndroid Build Coastguard Worker #ifdef __cplusplus 30*38e8c45fSAndroid Build Coastguard Worker extern "C" { 31*38e8c45fSAndroid Build Coastguard Worker #endif 32*38e8c45fSAndroid Build Coastguard Worker 33*38e8c45fSAndroid Build Coastguard Worker 34*38e8c45fSAndroid Build Coastguard Worker #define WINDOW_DEFAULT_WIDTH 640 35*38e8c45fSAndroid Build Coastguard Worker #define WINDOW_DEFAULT_HEIGHT 480 36*38e8c45fSAndroid Build Coastguard Worker 37*38e8c45fSAndroid Build Coastguard Worker #define WINDOW_BPP 16 38*38e8c45fSAndroid Build Coastguard Worker 39*38e8c45fSAndroid Build Coastguard Worker 40*38e8c45fSAndroid Build Coastguard Worker // The simple framework expects the application code to define these functions. 41*38e8c45fSAndroid Build Coastguard Worker extern void appInit(); 42*38e8c45fSAndroid Build Coastguard Worker extern void appDeinit(); 43*38e8c45fSAndroid Build Coastguard Worker extern void appRender(long tick, int width, int height); 44*38e8c45fSAndroid Build Coastguard Worker 45*38e8c45fSAndroid Build Coastguard Worker /* Value is non-zero when application is alive, and 0 when it is closing. 46*38e8c45fSAndroid Build Coastguard Worker * Defined by the application framework. 47*38e8c45fSAndroid Build Coastguard Worker */ 48*38e8c45fSAndroid Build Coastguard Worker extern int gAppAlive; 49*38e8c45fSAndroid Build Coastguard Worker 50*38e8c45fSAndroid Build Coastguard Worker 51*38e8c45fSAndroid Build Coastguard Worker #ifdef __cplusplus 52*38e8c45fSAndroid Build Coastguard Worker } 53*38e8c45fSAndroid Build Coastguard Worker #endif 54*38e8c45fSAndroid Build Coastguard Worker 55*38e8c45fSAndroid Build Coastguard Worker 56*38e8c45fSAndroid Build Coastguard Worker #endif // !APP_H_INCLUDED 57