Lines Matching refs:prim
123 def name(intype, outtype, prim):
125 return 'generate_' + prim + '_' + outtype
127 return 'translate_' + prim + '_' + intype + '2' + outtype
129 def preamble(intype, outtype, prim):
130 print('static void ' + name( intype, outtype, prim ) + '(')
152 preamble(intype, outtype, prim='tris')
160 preamble(intype, outtype, prim='tristrip')
168 preamble(intype, outtype, prim='trifan')
177 preamble(intype, outtype, prim='polygon')
185 preamble(intype, outtype, prim='quads')
193 preamble(intype, outtype, prim='quadstrip')
201 preamble(intype, outtype, prim='trisadj')
209 preamble(intype, outtype, prim='tristripadj')
228 def init(intype, outtype, prim):
232 '][' + longprim[prim] +
233 '] = ' + name( intype, outtype, prim ) + ';'))
238 '][' + longprim[prim] +
239 '] = ' + name( intype, outtype, prim ) + ';'))
245 for prim in PRIMS:
246 init(intype, outtype, prim)