Home | History | Annotate | Download | only in egl
      1 # -*- coding: utf-8 -*-
      2 
      3 from common import *
      4 from khr_util.format import commandParams
      5 
      6 def commandTypedefDecl (command):
      7 	return "typedef EGLW_APICALL %s\t(EGLW_APIENTRY* %s)\t(%s);" % (
      8 		command.type,
      9 		getFunctionTypeName(command.name),
     10 		commandParams(command))
     11 
     12 def commandMemberDecl (command):
     13 	return "%s\t%s;" % (getFunctionTypeName(command.name),
     14 						getFunctionMemberName(command.name))
     15 
     16 def gen (iface):
     17 	genCommandList(iface, commandTypedefDecl, EGL_WRAPPER_DIR, "eglwFunctionTypes.inl", True)
     18 	genCommandList(iface, commandMemberDecl, EGL_WRAPPER_DIR, "eglwFunctions.inl", True)
     19