示例#1
0
文件: debug.py 项目: rwols/glad
    def write_code_head(self, f):
        CGenerator.write_code_head(self, f)

        if self.spec.NAME == 'gl':
            f.write(DEFAULT_CALLBACK_GL)
        else:
            f.write(DEFAULT_CALLBACK)

        f.write(DEBUG_CODE)
示例#2
0
文件: debug.py 项目: Dav1dde/glad
    def write_code_head(self, f):
        CGenerator.write_code_head(self, f)

        if self.spec.NAME == 'gl':
            f.write(DEFAULT_CALLBACK_GL)
        else:
            f.write(DEFAULT_CALLBACK)

        f.write(DEBUG_CODE)
示例#3
0
文件: debug.py 项目: johnnovak/glad
    def write_code_head(self, f):
        CGenerator.write_code_head(self, f)

        if self.spec.NAME == 'gl':
            f.write(DEBUG_CODE_GL.format(spec=self.spec.NAME))
        else:
            f.write(DEBUG_CODE.format(spec=self.spec.NAME))

        f.write(DEBUG_CODE_COMMON.format(spec=self.spec.NAME))

        if self.spec.NAME == 'gl':
            f.write(DEBUG_CODE_GL_EXT.format(spec=self.spec.NAME))