Lines Matching refs:api
55 api=None variable in Type
170 name, api, alias = (item.get(attrib) for attrib in ['name', 'api', 'alias'])
171 return [(name, api)] + ([(alias, api)] if alias is not None else [])
173 def duplicateKey(self, (name, api), item): argument
198 def getFeatures(self, api, checkVersion=None): argument
199 return [eFeature for eFeature in self.apis[api]
229 def extensionSupports(eExtension, api, profile=None): argument
230 if api == 'gl' and profile == 'core':
233 needSupport = api
260 def addComponents(self, elem, api, profile=None): argument
264 if (matchApi(api, eComponent.get('api')) and
268 def addFeature(self, eFeature, api=None, profile=None, force=False): argument
270 if not matchApi(api, eFeature.get('api')):
272 warnElem(eFeature, 'API %s is not supported', api)
273 self.addComponents(eFeature, api, profile)
275 def addExtension(self, eExtension, api=None, profile=None, force=False): argument
276 if not extensionSupports(eExtension, api, profile):
278 warnElem(eExtension, '%s is not supported in API %s' % (getExtensionName(eExtension), api))
279 self.addComponents(eExtension, api, profile)
281 def createInterface(registry, spec, api=None): argument
291 api=eType.get('api'),
297 return parseType(registry.types[name, api])
303 return parseEnum(registry.enums[enumName, api])
386 def spec(registry, api, version=None, profile=None, extensionNames=[], protects=[], force=False): argument
397 for eFeature in registry.getFeatures(api, check):
398 spec.addFeature(eFeature, api, profile, force)
407 spec.addExtension(eExtension, api, profile, force)
412 def interface(registry, api, **kwargs): argument
413 s = spec(registry, api, **kwargs)
414 return createInterface(registry, s, api)