~ubuntu-branches/ubuntu/lucid/glew/lucid-201002122355

« back to all changes in this revision

Viewing changes to auto/src/glxew_tail.h

  • Committer: Bazaar Package Importer
  • Author(s): Muharem Hrnjadovic
  • Date: 2009-06-04 12:12:40 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090604121240-e0rh5kfvft8wh2b0
Tags: 1.5.1-4ubuntu1
* Merge from debian unstable, remaining changes:
  - Build shared libraries with CC, not LD.
  - The debian Makefile had trailing '^M' characters; once sanitized
    the diff between the debian/ubuntu Makefile looks as follows:
    http://pastebin.ca/1447378

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ------------------------------------------------------------------------ */
2
 
 
3
 
#ifdef GLEW_MX
4
 
 
5
 
typedef struct GLXEWContextStruct GLXEWContext;
6
 
extern GLenum glxewContextInit (GLXEWContext* ctx);
7
 
extern GLboolean glxewContextIsSupported (GLXEWContext* ctx, const char* name);
8
 
 
9
 
#define glxewInit() glxewContextInit(glxewGetContext())
10
 
#define glxewIsSupported(x) glxewContextIsSupported(glxewGetContext(), x)
11
 
 
12
 
#define GLXEW_GET_VAR(x) (*(const GLboolean*)&(glxewGetContext()->x))
13
 
#define GLXEW_GET_FUN(x) x
14
 
 
15
 
#else /* GLEW_MX */
16
 
 
17
 
#define GLXEW_GET_VAR(x) (*(const GLboolean*)&x)
18
 
#define GLXEW_GET_FUN(x) x
19
 
 
20
 
extern GLboolean glxewIsSupported (const char* name);
21
 
 
22
 
#endif /* GLEW_MX */
23
 
 
24
 
extern GLboolean glxewGetExtension (const char* name);
25
 
 
26
 
#ifdef __cplusplus
27
 
}
28
 
#endif
29
 
 
30
 
#endif /* __glxew_h__ */
 
1
/* ------------------------------------------------------------------------ */
 
2
 
 
3
#ifdef GLEW_MX
 
4
 
 
5
typedef struct GLXEWContextStruct GLXEWContext;
 
6
extern GLenum glxewContextInit (GLXEWContext* ctx);
 
7
extern GLboolean glxewContextIsSupported (GLXEWContext* ctx, const char* name);
 
8
 
 
9
#define glxewInit() glxewContextInit(glxewGetContext())
 
10
#define glxewIsSupported(x) glxewContextIsSupported(glxewGetContext(), x)
 
11
 
 
12
#define GLXEW_GET_VAR(x) (*(const GLboolean*)&(glxewGetContext()->x))
 
13
#define GLXEW_GET_FUN(x) x
 
14
 
 
15
#else /* GLEW_MX */
 
16
 
 
17
#define GLXEW_GET_VAR(x) (*(const GLboolean*)&x)
 
18
#define GLXEW_GET_FUN(x) x
 
19
 
 
20
extern GLboolean glxewIsSupported (const char* name);
 
21
 
 
22
#endif /* GLEW_MX */
 
23
 
 
24
extern GLboolean glxewGetExtension (const char* name);
 
25
 
 
26
#ifdef __cplusplus
 
27
}
 
28
#endif
 
29
 
 
30
#endif /* __glxew_h__ */