1 #ifndef __EGL_H 2 #define __EGL_H 3 4 // include types and defines 5 6 #include <GL/egl_defs.h> 7 8 // include log tokens 9 10 #include <GL/egl_tokens.h> 11 12 // include simple void functions we ignore 13 14 #include <GL/egl_void.h> 15 16 // include functions that need a bit of work, but we don't log 17 18 #include <GL/egl_cpx.h> 19 20 // include functions we log 21 22 #ifdef EGL_LOG_PTR 23 24 extern unsigned int *EGL_LOG_PTR; 25 xGLL(int a)26inline void xGLL(int a) { *EGL_LOG_PTR=(unsigned int)a; EGL_LOG_PTR++; }; xGLL(unsigned int a)27inline void xGLL(unsigned int a) { *EGL_LOG_PTR=a; EGL_LOG_PTR++; }; xGLL(float a)28inline void xGLL(float a) { *(float *)EGL_LOG_PTR=a; EGL_LOG_PTR++; }; xGLL(double a)29inline void xGLL(double a) { *(float *)EGL_LOG_PTR=(float)a; EGL_LOG_PTR++; }; xGLL(const float * a)30inline void xGLL(const float *a) { for(int t=0;t!=16;t++) xGLL(a[t]); }; xGLL(const double * a)31inline void xGLL(const double *a) { for(int t=0;t!=16;t++) xGLL(a[t]); }; 32 #else 33 xGLL(int a)34inline void xGLL(int a) {}; xGLL(unsigned int a)35inline void xGLL(unsigned int a) {}; xGLL(float a)36inline void xGLL(float a) {}; xGLL(double a)37inline void xGLL(double a) {}; xGLL(const float * a)38inline void xGLL(const float *a) {}; xGLL(const double * a)39inline void xGLL(const double *a) {}; 40 41 #endif 42 43 // functions we might log 44 45 #include <GL/egl_logged.h> 46 47 #endif 48