mirror of https://github.com/mosra/magnum.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.1 KiB
62 lines
1.1 KiB
|
11 years ago
|
@require(passthru, functions, enums, options, version, extensions)
|
||
|
|
#ifndef _flextgl_h_
|
||
|
|
#define _flextgl_h_
|
||
|
|
|
||
|
|
/* Defensive include guards */
|
||
|
|
|
||
|
|
#if defined(__gl_h_) || defined(__gl2_h_) || defined(__gl3_h_) || defined(__gl31_h_)
|
||
|
|
#error Attempt to include auto-generated header after including gl3.h
|
||
|
|
#endif
|
||
|
|
#if defined(__gl2ext_h_) || defined(__gl3ext_h_)
|
||
|
|
#error Attempt to include auto-generated header after including gl3ext.h
|
||
|
|
#endif
|
||
|
|
#if defined(__gl2platform_h_) || defined(__gl3platform_h_)
|
||
|
|
#error Attempt to include auto-generated header after including gl3platform.h
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#define __gl_h_
|
||
|
|
#define __gl2_h_
|
||
|
|
#define __gl3_h_
|
||
|
|
#define __gl31_h_
|
||
|
|
#define __gl2ext_h_
|
||
|
|
#define __gl3ext_h_
|
||
|
|
#define __gl2platform_h_
|
||
|
|
#define __gl3platform_h_
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
void flextGLInit();
|
||
|
|
|
||
|
|
/* Function declaration macros */
|
||
|
|
#define APIENTRY
|
||
|
|
#ifndef GLAPI
|
||
|
|
#define GLAPI extern
|
||
|
|
#endif
|
||
|
|
|
||
|
|
/* Data types */
|
||
|
|
|
||
|
|
@passthru
|
||
|
|
|
||
|
|
/* Enums */
|
||
|
|
|
||
|
|
@enums
|
||
|
|
|
||
|
|
/* Function prototypes */
|
||
|
|
@for cat,funcs in functions:
|
||
|
|
|
||
|
|
/* GL_@cat */
|
||
|
|
|
||
|
|
@for f in funcs:
|
||
|
|
GLAPI @f.returntype gl@f.name\
|
||
|
|
(@f.param_type_list_string());
|
||
|
|
@end
|
||
|
|
@end
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|