Esempio n. 1
0
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))
Esempio n. 2
0
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))
Esempio n. 3
0
def commandTypedefDecl (command):
	return "typedef EGLW_APICALL %s\t(EGLW_APIENTRY* %s)\t(%s);" % (
		command.type,
		getFunctionTypeName(command.name),
		commandParams(command))
Esempio n. 4
0
def concreteMemberDecl(command):
    return "%s\t%s\t(%s) const;" % (command.type,
                                    getFunctionMemberName(
                                        command.name), commandParams(command))
Esempio n. 5
0
def virtualMemberDecl(command):
    return "virtual %s\t%s\t(%s) const\t= 0;" % (
        command.type, getFunctionMemberName(
            command.name), commandParams(command))
Esempio n. 6
0
def commandTypedefDecl(command):
    return "typedef EGLW_APICALL %s\t(EGLW_APIENTRY* %s)\t(%s);" % (
        command.type, getFunctionTypeName(
            command.name), commandParams(command))
Esempio n. 7
0
def concreteMemberDecl (command):
	return "%s\t%s\t(%s) const;" % (
		command.type,
		getFunctionMemberName(command.name),
		commandParams(command))
Esempio n. 8
0
def virtualMemberDecl (command):
	return "virtual %s\t%s\t(%s) const\t= 0;" % (
		command.type,
		getFunctionMemberName(command.name),
		commandParams(command))