def memberImpl (command): template = """ {returnType} FuncPtrLibrary::{memberName} ({paramDecls}) const {{ {maybeReturn}m_egl.{memberName}({arguments}); }}""" return template.format( returnType = command.type, mangledName = getFunctionMemberName(command.name), paramDecls = commandParams(command), maybeReturn = "return " if command.type != 'void' else "", memberName = getFunctionMemberName(command.name), arguments = commandArgs(command))
def memberImpl(command): template = """ {returnType} FuncPtrLibrary::{memberName} ({paramDecls}) const {{ {maybeReturn}m_egl.{memberName}({arguments}); }}""" return template.format( returnType=command.type, mangledName=getFunctionMemberName(command.name), paramDecls=commandParams(command), maybeReturn="return " if command.type != 'void' else "", memberName=getFunctionMemberName(command.name), arguments=commandArgs(command))
def commandTypedefDecl (command): return "typedef EGLW_APICALL %s\t(EGLW_APIENTRY* %s)\t(%s);" % ( command.type, getFunctionTypeName(command.name), commandParams(command))
def concreteMemberDecl(command): return "%s\t%s\t(%s) const;" % (command.type, getFunctionMemberName( command.name), commandParams(command))
def virtualMemberDecl(command): return "virtual %s\t%s\t(%s) const\t= 0;" % ( command.type, getFunctionMemberName( command.name), commandParams(command))
def commandTypedefDecl(command): return "typedef EGLW_APICALL %s\t(EGLW_APIENTRY* %s)\t(%s);" % ( command.type, getFunctionTypeName( command.name), commandParams(command))
def concreteMemberDecl (command): return "%s\t%s\t(%s) const;" % ( command.type, getFunctionMemberName(command.name), commandParams(command))
def virtualMemberDecl (command): return "virtual %s\t%s\t(%s) const\t= 0;" % ( command.type, getFunctionMemberName(command.name), commandParams(command))