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_TGA.c | 11 // esUtil_TGA.c |
12 // | 12 // |
13 // This file contains the Win32 implementation of a TGA image loader | 13 // This file contains the Win32 implementation of a TGA image loader |
14 | 14 |
| 15 #ifndef WIN32_LEAN_AND_MEAN |
15 #define WIN32_LEAN_AND_MEAN | 16 #define WIN32_LEAN_AND_MEAN |
| 17 #endif // WIN32_LEAN_AND_MEAN |
| 18 |
16 #include <windows.h> | 19 #include <windows.h> |
17 #include <stdio.h> | 20 #include <stdio.h> |
18 #include <stdlib.h> | 21 #include <stdlib.h> |
19 | 22 |
20 /// | 23 /// |
21 // Macros | 24 // Macros |
22 // | 25 // |
23 #define INVERTED_BIT (1 << 5) | 26 #define INVERTED_BIT (1 << 5) |
24 | 27 |
25 /// | 28 /// |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 } | 117 } |
115 | 118 |
116 fclose(fp); | 119 fclose(fp); |
117 free(Buffer24); | 120 free(Buffer24); |
118 return(TRUE); | 121 return(TRUE); |
119 } | 122 } |
120 } | 123 } |
121 | 124 |
122 return(FALSE); | 125 return(FALSE); |
123 } | 126 } |
OLD | NEW |