OLD | NEW |
1 // | 1 // |
2 // Book: OpenGL(R) ES 2.0 Programming Guide | 2 // Book: OpenGL(R) ES 2.0 Programming Guide |
3 // Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner | 3 // Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner |
4 // ISBN-10: 0321502795 | 4 // ISBN-10: 0321502795 |
5 // ISBN-13: 9780321502797 | 5 // ISBN-13: 9780321502797 |
6 // Publisher: Addison-Wesley Professional | 6 // Publisher: Addison-Wesley Professional |
7 // URLs: http://safari.informit.com/9780321563835 | 7 // URLs: http://safari.informit.com/9780321563835 |
8 // http://www.opengles-book.com | 8 // http://www.opengles-book.com |
9 // | 9 // |
10 | 10 |
11 // esUtil_win.h | 11 // esUtil_win.h |
12 // | 12 // |
13 // API-neutral interface for creating windows. Implementation needs to be pro
vided per-platform. | 13 // API-neutral interface for creating windows. Implementation needs to be pro
vided per-platform. |
14 | 14 |
15 #ifndef ESUTIL_WIN_H | 15 #ifndef ESUTIL_WIN_H |
16 #define ESUTIL_WIN_H | 16 #define ESUTIL_WIN_H |
17 | 17 |
| 18 /// |
| 19 // Includes |
| 20 // |
| 21 |
18 #ifdef __cplusplus | 22 #ifdef __cplusplus |
| 23 |
19 extern "C" { | 24 extern "C" { |
20 #endif // __cplusplus | 25 #endif |
| 26 |
| 27 |
| 28 /// |
| 29 // Macros |
| 30 // |
| 31 |
| 32 /// |
| 33 // Types |
| 34 // |
| 35 |
| 36 /// |
| 37 // Public Functions |
| 38 // |
| 39 |
| 40 /// |
| 41 // WinCreate() |
| 42 // |
| 43 // Create Win32 instance and window |
| 44 // |
| 45 GLboolean WinCreate ( ESContext *esContext, const char *title ); |
| 46 |
| 47 /// |
| 48 // WinLoop() |
| 49 // |
| 50 // Start main windows loop |
| 51 // |
| 52 void WinLoop ( ESContext *esContext ); |
21 | 53 |
22 /// | 54 /// |
23 // WinTGALoad() | 55 // WinTGALoad() |
24 // | 56 // |
25 // TGA loader win32 implementation | 57 // TGA loader win32 implementation |
26 // | 58 // |
27 int WinTGALoad ( const char *fileName, char **buffer, int *width, int *height ); | 59 int WinTGALoad ( const char *fileName, char **buffer, int *width, int *height ); |
28 | 60 |
29 #ifdef __cplusplus | 61 #ifdef __cplusplus |
30 } | 62 } |
31 #endif // __cplusplus | 63 #endif |
32 | 64 |
33 #endif // ESUTIL_WIN_H | 65 #endif // ESUTIL_WIN_H |
OLD | NEW |