1 # -*- coding: utf-8 -*-
8 def enumDefinition (enum):
9 return "#define %s\t%s" % (enum.name, normalizeConstant(enum.value))
12 src = indentLines(map(enumDefinition, iface.enums))
13 writeInlFile(os.path.join(OPENGL_INC_DIR, "glwEnums.inl"), src)
15 if __name__ == "__main__":
17 logging.basicConfig(stream=sys.stderr, level=logging.INFO)
18 genEnums(getGLInterface())