Imported Upstream version 2.81
[platform/upstream/libbullet.git] / Glut / EmptyGL / GL / gl.h
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
26 inline  void    xGLL(int a)                      {      *EGL_LOG_PTR=(unsigned int)a; EGL_LOG_PTR++;            };
27 inline  void    xGLL(unsigned int a)     {      *EGL_LOG_PTR=a; EGL_LOG_PTR++;                                  };
28 inline  void    xGLL(float a)                    {      *(float *)EGL_LOG_PTR=a; EGL_LOG_PTR++;                 };
29 inline  void    xGLL(double a)                   {      *(float *)EGL_LOG_PTR=(float)a; EGL_LOG_PTR++;  };
30 inline  void    xGLL(const float *a)     {  for(int t=0;t!=16;t++) xGLL(a[t]);                                  };
31 inline  void    xGLL(const double *a)    {  for(int t=0;t!=16;t++) xGLL(a[t]);                                  };
32 #else
33
34 inline  void    xGLL(int a)                             {};
35 inline  void    xGLL(unsigned int a)    {};
36 inline  void    xGLL(float a)                   {};
37 inline  void    xGLL(double  a)                 {};
38 inline  void    xGLL(const float *a)    {};
39 inline  void    xGLL(const double  *a)  {};
40
41 #endif
42
43 // functions we might log
44
45 #include        <GL/egl_logged.h>
46
47 #endif