def GlFunction(*args, **kwargs):
- kwargs.setdefault('call', 'GLAPIENTRY')
+ kwargs.setdefault('call', 'APIENTRY')
return Function(*args, **kwargs)
#include <cassert>
+#include "glimports.hpp"
+
+
static inline size_t
__gl_calllists_size(GLsizei n, GLenum type)
{
print "Usage: %s [-f input_file_name]" % sys.argv[0]
sys.exit(1)
+
if __name__ == '__main__':
file_name = os.path.join(glapi_path, "gl_API.xml")
-
+
try:
(args, trail) = getopt.getopt(sys.argv[1:], "f:")
except Exception,e:
print
print '#define _GDI32_'
print
- print '#include <windows.h>'
- print '#include <tchar.h>'
- print '#include <GL/gl.h>'
- print '#include "glext.h"'
- print '#include "wglext.h"'
+ print '#include "glimports.hpp"'
print
print '#include "log.hpp"'
print '#include "glsize.hpp"'
def StdFunction(*args, **kwargs):
- kwargs.setdefault('call', 'GLAPIENTRY')
+ kwargs.setdefault('call', '__stdcall')
return Function(*args, **kwargs)