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.
22 lines
559 B
22 lines
559 B
|
12 years ago
|
@require(passthru, functions, enums, options, version, extensions)
|
||
|
|
#include "flextGL.h"
|
||
|
|
|
||
|
|
#include <cstdio>
|
||
|
|
#include <cstdlib>
|
||
|
|
|
||
|
|
#include "Magnum/Platform/Implementation/OpenGLFunctionLoader.h"
|
||
|
|
|
||
|
|
void flextGLInit() {
|
||
|
|
Magnum::Platform::Implementation::OpenGLFunctionLoader loader;
|
||
|
|
@for category,funcs in functions:
|
||
|
|
@if category not in ['ES_VERSION_2_0']:
|
||
|
|
|
||
|
|
/* GL_@category */
|
||
|
|
@for f in funcs:
|
||
|
|
flextgl@f.name = reinterpret_cast<@f.returntype\
|
||
|
|
(APIENTRY*)(@f.param_type_list_string())>(loader.load("gl@f.name"));
|
||
|
|
@end
|
||
|
|
@end
|
||
|
|
@end
|
||
|
|
}
|