D | u_unfilled_gen.py | 99 def vert( intype, outtype, v0 ): argument 100 if intype == GENERATE: 105 def line( intype, outtype, ptr, v0, v1 ): argument 106 print ' (' + ptr + ')[0] = ' + vert( intype, outtype, v0 ) + ';' 107 print ' (' + ptr + ')[1] = ' + vert( intype, outtype, v1 ) + ';' 113 def do_tri( intype, outtype, ptr, v0, v1, v2 ): argument 114 line( intype, outtype, ptr, v0, v1 ) 115 line( intype, outtype, ptr + '+2', v1, v2 ) 116 line( intype, outtype, ptr + '+4', v2, v0 ) 118 def do_quad( intype, outtype, ptr, v0, v1, v2, v3 ): argument [all …]
|