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