Mercurial > hg > forks > gldragon
comparison gldragon.cpp @ 51:9c6654647608
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 06 Dec 2019 01:30:51 +0200 |
parents | d4232c89145f |
children | 6343c3392a95 |
comparison
equal
deleted
inserted
replaced
50:d4232c89145f | 51:9c6654647608 |
---|---|
40 /* Helpers | 40 /* Helpers |
41 */ | 41 */ |
42 #ifdef GL_GLEXT_PROTOTYPES | 42 #ifdef GL_GLEXT_PROTOTYPES |
43 #define DM_GLEXT_INIT(extproctype, extprocname) /* stub */ | 43 #define DM_GLEXT_INIT(extproctype, extprocname) /* stub */ |
44 #else | 44 #else |
45 // GL_GLEXT_PROTOTYPES not defined | |
46 | |
47 #define DM_GLEXT_INIT(extproctype, extprocname) extproctype extprocname = NULL; | 45 #define DM_GLEXT_INIT(extproctype, extprocname) extproctype extprocname = NULL; |
48 #include "dmglexts.h" | 46 #include "dmglexts.h" |
49 #undef DM_GLEXT_INIT | 47 #undef DM_GLEXT_INIT |
50 | 48 |
51 | 49 |
81 return ptr; | 79 return ptr; |
82 | 80 |
83 status = false; | 81 status = false; |
84 return NULL; | 82 return NULL; |
85 } | 83 } |
86 | |
87 #define DM_GLEXT_INIT(extproctype, extprocname) \ | |
88 extprocname = (extproctype) dmGLExtInit(#extprocname, status); | |
89 | |
90 #endif | 84 #endif |
91 | 85 |
92 | 86 |
93 bool dmInitGLExtensions(void) | 87 bool dmInitGLExtensions(void) |
94 { | 88 { |
95 #ifdef GL_GLEXT_PROTOTYPES | 89 #ifdef GL_GLEXT_PROTOTYPES |
96 return true; | 90 return true; |
97 #else | 91 #else |
98 bool status = true; | 92 bool status = true; |
93 #define DM_GLEXT_INIT(extproctype, extprocname) \ | |
94 extprocname = (extproctype) dmGLExtInit(#extprocname, status); | |
99 #include "dmglexts.h" | 95 #include "dmglexts.h" |
100 return status; | 96 return status; |
101 #endif | 97 #endif |
102 } | 98 } |
103 | 99 |