#NEWLINE# def generate_extensions( self , extensions , enums , functions ) : #NEWLINE# #INDENT# f = self . _f_gl #NEWLINE# write = set ( ) #NEWLINE# written = ( set ( ( enum . name for enum in enums ) ) | set ( ( function . proto . name for function in functions ) ) ) #NEWLINE# f . write ( '# Extensions\nvar\n' ) #NEWLINE# for ext in extensions : #NEWLINE# #INDENT# if ( ( self . spec . NAME == 'gl' ) and ( not ( ext . name in written ) ) ) : #NEWLINE# #INDENT# self . write_boolean ( f , ext . name ) #NEWLINE# #UNINDENT# for enum in ext . enums : #NEWLINE# #INDENT# if ( ( not ( enum . name in written ) ) and ( not ( enum . group == 'SpecialNumbers' ) ) ) : #NEWLINE# #INDENT# type = ( None if ( enum . group == 'TransformFeedbackTokenNV' ) else 'GLenum' ) #NEWLINE# self . write_enum ( f , enum . name , enum . value , type ) #NEWLINE# #UNINDENT# written . add ( enum . name ) #NEWLINE# #UNINDENT# written . add ( ext . name ) #NEWLINE# f . write ( '\n' ) #NEWLINE# #UNINDENT# self . write_functions ( f , write , written , extensions ) #NEWLINE# f . write ( '\n\n' )