1 # -*- coding: utf-8 -*-
5 def commandTypedefDecl (command):
6 return "typedef GLW_APICALL %s\t(GLW_APIENTRY* %s)\t(%s);" % (
8 getFunctionTypeName(command.name),
9 commandParams(command))
11 def commandMemberDecl (command):
12 return "%s\t%s;" % (getFunctionTypeName(command.name),
13 getFunctionMemberName(command.name))
15 def genFunctionPointers (iface):
16 genCommandList(iface, commandTypedefDecl, OPENGL_INC_DIR, "glwFunctionTypes.inl", True)
17 genCommandList(iface, commandMemberDecl, OPENGL_INC_DIR, "glwFunctions.inl", True)
19 if __name__ == "__main__":
20 genFunctionPointers(getHybridInterface())