Пример #1
0
    def printRealHeader(self):
        print ""
        print "#include <GL/gl.h>"
        print '#include "indirect_size.h"'

        print ""
        glX_XML.printPure()
        print ""
        glX_XML.printFastcall()
        print ""
        glX_XML.printVisibility("INTERNAL", "internal")
        print ""
        print ""
        print "#ifdef HAVE_ALIAS"
        print "#  define ALIAS2(from,to) \\"
        print "    INTERNAL PURE FASTCALL GLint __gl ## from ## _size( GLenum e ) \\"
        print "        __attribute__ ((alias( # to )));"
        print "#  define ALIAS(from,to) ALIAS2( from, __gl ## to ## _size )"
        print "#else"
        print "#  define ALIAS(from,to) \\"
        print "    INTERNAL PURE FASTCALL GLint __gl ## from ## _size( GLenum e ) \\"
        print "    { return __gl ## to ## _size( e ); }"
        print "#endif"
        print ""
        print ""
Пример #2
0
    def printRealHeader(self):
        print """
/**
 * \\file
 * Prototypes for indirect rendering functions.
 *
 * \\author Kevin E. Martin <*****@*****.**>
 * \\author Ian Romanick <*****@*****.**>
 */

#if !defined( _INDIRECT_H_ )
#  define _INDIRECT_H_

"""
        glX_XML.printVisibility("HIDDEN", "hidden")
Пример #3
0
    def printRealHeader(self):
        print """
/**
 * \\file
 * Prototypes for functions used to determine the number of data elements in
 * various GLX protocol messages.
 *
 * \\author Ian Romanick <*****@*****.**>
 */

#if !defined( _GLXSIZE_H_ )
#  define _GLXSIZE_H_

"""
        glX_XML.printPure()
        print ""
        glX_XML.printFastcall()
        print ""
        glX_XML.printVisibility("INTERNAL", "internal")
        print ""