Lines Matching refs:pr

183 def name(intype, outtype, inpv, outpv, pr, prim):
187 return 'translate_' + prim + '_' + intype + '2' + outtype + '_' + inpv + '2' + outpv + '_' + pr
189 def preamble(intype, outtype, inpv, outpv, pr, prim):
190 print('static void ' + name( intype, outtype, inpv, outpv, pr, prim ) + '(')
228 def points(intype, outtype, inpv, outpv, pr):
229 preamble(intype, outtype, inpv, outpv, pr, prim='points')
235 def lines(intype, outtype, inpv, outpv, pr):
236 preamble(intype, outtype, inpv, outpv, pr, prim='lines')
242 def linestrip(intype, outtype, inpv, outpv, pr):
243 preamble(intype, outtype, inpv, outpv, pr, prim='linestrip')
249 def lineloop(intype, outtype, inpv, outpv, pr):
250 preamble(intype, outtype, inpv, outpv, pr, prim='lineloop')
253 if pr == PRENABLE:
268 def tris(intype, outtype, inpv, outpv, pr):
269 preamble(intype, outtype, inpv, outpv, pr, prim='tris')
276 def tristrip(intype, outtype, inpv, outpv, pr):
277 preamble(intype, outtype, inpv, outpv, pr, prim='tristrip')
287 def trifan(intype, outtype, inpv, outpv, pr):
288 preamble(intype, outtype, inpv, outpv, pr, prim='trifan')
291 if pr == PRENABLE:
306 def polygon(intype, outtype, inpv, outpv, pr):
307 preamble(intype, outtype, inpv, outpv, pr, prim='polygon')
309 if pr == PRENABLE:
322 def quads(intype, outtype, inpv, outpv, pr):
323 preamble(intype, outtype, inpv, outpv, pr, prim='quads')
325 if pr == PRENABLE:
333 def quadstrip(intype, outtype, inpv, outpv, pr):
334 preamble(intype, outtype, inpv, outpv, pr, prim='quadstrip')
336 if pr == PRENABLE:
347 def linesadj(intype, outtype, inpv, outpv, pr):
348 preamble(intype, outtype, inpv, outpv, pr, prim='linesadj')
355 def linestripadj(intype, outtype, inpv, outpv, pr):
356 preamble(intype, outtype, inpv, outpv, pr, prim='linestripadj')
363 def trisadj(intype, outtype, inpv, outpv, pr):
364 preamble(intype, outtype, inpv, outpv, pr, prim='trisadj')
372 def tristripadj(intype, outtype, inpv, outpv, pr):
373 preamble(intype, outtype, inpv, outpv, pr, prim='tristripadj')
393 for pr in (PRDISABLE, PRENABLE):
394 if pr == PRENABLE and intype == GENERATE:
396 points(intype, outtype, inpv, outpv, pr)
397 lines(intype, outtype, inpv, outpv, pr)
398 linestrip(intype, outtype, inpv, outpv, pr)
399 lineloop(intype, outtype, inpv, outpv, pr)
400 tris(intype, outtype, inpv, outpv, pr)
401 tristrip(intype, outtype, inpv, outpv, pr)
402 trifan(intype, outtype, inpv, outpv, pr)
403 quads(intype, outtype, inpv, outpv, pr)
404 quadstrip(intype, outtype, inpv, outpv, pr)
405 polygon(intype, outtype, inpv, outpv, pr)
406 linesadj(intype, outtype, inpv, outpv, pr)
407 linestripadj(intype, outtype, inpv, outpv, pr)
408 trisadj(intype, outtype, inpv, outpv, pr)
409 tristripadj(intype, outtype, inpv, outpv, pr)
411 def init(intype, outtype, inpv, outpv, pr, prim):
418 '] = ' + name( intype, outtype, inpv, outpv, pr, prim ) + ';')
425 '][' + pr_idx[pr] +
427 '] = ' + name( intype, outtype, inpv, outpv, pr, prim ) + ';')
435 for pr in PRS:
437 init(intype, outtype, inpv, outpv, pr, prim)