Example #1
0
    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)
Example #2
0
File: debug.py Project: 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)
Example #3
0
    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))
Example #4
0
 def write_api_header(self, f):
     CGenerator.write_api_header(self, f)
     f.write(DEBUG_HEADER)
Example #5
0
File: debug.py Project: rwols/glad
 def write_api_header(self, f):
     CGenerator.write_api_header(self, f)
     f.write(DEBUG_HEADER)
Example #6
0
 def write_api_header(self, f):
     CGenerator.write_api_header(self, f)
     f.write(DEBUG_HEADER.format(spec=self.spec.NAME))
     if self.spec.NAME == 'gl':
         f.write(DEBUG_HEADER_GL_EXT.format(spec=self.spec.NAME))