1 # -*- coding: utf-8 -*-
5 def commandInitStatement (command):
6 return "gl->%s\t= (%s)\tloader->get(\"%s\");" % (
7 getFunctionMemberName(command.name),
8 getFunctionTypeName(command.name),
11 def genFuncInit (registry):
12 def check(api, version):
13 if api == 'gl' and version >= "3.0":
17 genCommandLists(registry, commandInitStatement,
19 directory = OPENGL_INC_DIR,
20 filePattern = "glwInit%s.inl",
23 if __name__ == "__main__":
24 genFuncInit(getGLRegistry())