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