OLD | NEW |
| (Empty) |
1 // | |
2 // Book: OpenGL(R) ES 2.0 Programming Guide | |
3 // Authors: Aaftab Munshi, Dan Ginsburg, Dave Shreiner | |
4 // ISBN-10: 0321502795 | |
5 // ISBN-13: 9780321502797 | |
6 // Publisher: Addison-Wesley Professional | |
7 // URLs: http://safari.informit.com/9780321563835 | |
8 // http://www.opengles-book.com | |
9 // | |
10 | |
11 // | |
12 // Hello_Triangle.h | |
13 // | |
14 // This is a simple example that draws a single triangle with | |
15 // a minimal vertex/fragment shader. The purpose of this | |
16 // example is to demonstrate the basic concepts of | |
17 // OpenGL ES 2.0 rendering. | |
18 | |
19 #ifndef HELLO_TRIANGLE_H | |
20 #define HELLO_TRIANGLE_H | |
21 | |
22 #include "esUtil.h" | |
23 | |
24 #ifdef __cplusplus | |
25 extern "C" { | |
26 #endif // __cplusplus | |
27 | |
28 typedef struct | |
29 { | |
30 // Handle to a program object | |
31 GLuint programObject; | |
32 // Handle to vbo object | |
33 GLuint vbo; | |
34 | |
35 } HTUserData; | |
36 | |
37 extern int htInit ( ESContext *esContext ); | |
38 | |
39 extern void htDraw ( ESContext *esContext ); | |
40 | |
41 extern void htShutDown ( ESContext *esContext ); | |
42 | |
43 #ifdef __cplusplus | |
44 } | |
45 #endif // __cplusplus | |
46 #endif // HELLO_TRIANGLE_H | |
OLD | NEW |