Home | History | Annotate | Download | only in registry

Lines Matching full:feature

90 # BaseInfo - base class for information about a registry feature
92 # required - should this feature be defined during header generation
94 # declared - has this feature been defined already?
95 # elem - lxml.etree Element for this feature
99 """Represents the state of a registry feature, used during API generation"""
149 # FeatureInfo - registry information about an API <feature>
151 # name - feature name string (e.g. 'GL_ARB_multitexture')
152 # number - feature version number (e.g. 1.2). <extension>
155 # emit - has this feature been defined already?
157 """Represents the state of an API feature (version/extension)"""
163 if (elem.tag == 'feature'):
172 # Sorts by category of the feature name string:
173 # Core API features (those defined with a <feature> tag)
176 def regSortCategoryKey(feature):
177 if (feature.elem.tag == 'feature'):
179 elif (feature.category == 'ARB' or
180 feature.category == 'KHR' or
181 feature.category == 'OES'):
188 def regSortNameKey(feature):
189 return feature.name
192 # Sorts by feature version number. <extension>
194 def regSortNumberKey(feature):
195 return feature.number
198 # Sorts by primary key of feature category,
199 # then by feature name within the category,
275 # generated around a feature interface in the header file.
337 # beginFeature(interface, emit) - write interface for a feature
409 # If there's an additional 'protect' attribute in the feature, save it
412 # Derived classes responsible for emitting feature
420 'when not in feature')
426 'when not in feature')
432 'when not in feature')
565 # prototypes separately for this feature. They're only printed in
673 # addElementInfo(elem,info,infoName,dictionary) - add feature info to dict
674 # lookupElementInfo(fname,dictionary) - lookup feature info in dict
704 # elem - <type>/<group>/<enum>/<command>/<feature>/<extension> Element
705 # info - corresponding {Type|Group|Enum|Cmd|Feature}Info object
706 # infoName - 'type' / 'group' / 'enum' / 'command' / 'feature' / 'extension'
729 # self.gen.logMsg('diag', 'Found API-specific element for feature', fname)
732 # self.gen.logMsg('diag', 'Found generic element for feature', fname)
792 for feature in self.reg.findall('feature'):
793 ai = FeatureInfo(feature)
794 self.addElementInfo(feature, ai, 'feature', self.apidict)
797 for feature in self.extensions:
798 ei = FeatureInfo(feature)
799 self.addElementInfo(feature, ei, 'extension', self.extdict)
899 for feature in interface.findall('require'):
900 if (matchAPIProfile(api, profile, feature)):
901 self.markRequired(feature,True)
903 for feature in interface.findall('remove'):
904 if (matchAPIProfile(api, profile, feature)):
905 self.markRequired(feature,False)
909 # fname - name of feature (<type>/<enum>/<command>
910 # ftype - type of feature, 'type' | 'enum' | 'command'
916 # No such feature. This is an error, but reported earlier
917 self.gen.logMsg('diag', '*** No entry found for feature', fname,
921 # If feature isn't required, or has already been declared, return
929 # Pull in dependent type declaration(s) of the feature.
955 '(not emitting this feature)')
956 # Always mark feature declared, as though actually emitted
1015 self.gen.logMsg('diag', '*** NOT tagging feature api =', api,
1019 self.gen.logMsg('diag', '*** NOT including feature api =', api,
1023 self.gen.logMsg('diag', '*** NOT including feature api =', api,
1083 # a feature in one version and restore it later by requiring it in
1104 self.gen.logMsg('diag', '*** PASS 2: NOT declaring feature',