1255 |
setup(); |
setup(); |
1256 |
float col[] = {1,1,1,1,0,0,0,0}; |
float col[] = {1,1,1,1,0,0,0,0}; |
1257 |
if (!mode) glColor4f(0,0,0,1); |
if (!mode) glColor4f(0,0,0,1); |
1258 |
Irregu::draw(coords1, vert, norm, texscale, 1.0/128, 0, |
Irregu::draw(coords1, vert, norm, texscale, 2.0, 128, 0, |
1259 |
-.5, .5, col, NULL, 3, 0, |
-.5, .5, col, NULL, 3, 0, |
1260 |
Irregu::SLICE_1D + Irregu::Y_SECCOLOR + |
Irregu::SLICE_1D + Irregu::Y_SECCOLOR + |
1261 |
mode * Irregu::DOTVEC_COLOR + Irregu::INTERP_DOTVEC); |
mode * Irregu::DOTVEC_COLOR + Irregu::INTERP_DOTVEC); |
1284 |
{ |
{ |
1285 |
"Type" : "2", |
"Type" : "2", |
1286 |
"Name": "IrregularEdge", |
"Name": "IrregularEdge", |
1287 |
"Data": """float texscale, linewidth, scale_pow, border0, border1; |
"Data": """float texscale, linewidth, refsize, scale_pow, border0, border1; |
1288 |
vector<float> const0, const1; int angles, multi, flags; |
vector<float> const0, const1; int angles, multi, flags; |
1289 |
CallGLCode setup; |
CallGLCode setup; |
1290 |
float dicefactor;""", |
float dicefactor;""", |
1291 |
"Params" : """ |
"Params" : """ |
1292 |
float texscale, float linewidth, float scale_pow, |
float texscale, float linewidth, float refsize, float scale_pow, |
1293 |
float border0, float border1, |
float border0, float border1, |
1294 |
UTF8String const0, UTF8String const1, int angles, int multi, int flags, |
UTF8String const0, UTF8String const1, int angles, int multi, int flags, |
1295 |
UTF8String setupcode, float dicefactor |
UTF8String setupcode, float dicefactor |
1310 |
"ParamCode" : """ |
"ParamCode" : """ |
1311 |
this->texscale = texscale; |
this->texscale = texscale; |
1312 |
this->linewidth = linewidth; |
this->linewidth = linewidth; |
1313 |
|
this->refsize = refsize; |
1314 |
this->scale_pow = scale_pow; |
this->scale_pow = scale_pow; |
1315 |
this->border0 = border0; |
this->border0 = border0; |
1316 |
this->border1 = border1; |
this->border1 = border1; |
1346 |
|
|
1347 |
setup(); |
setup(); |
1348 |
GLERR; |
GLERR; |
1349 |
Irregu::draw(coords1, vert, norm, texscale, linewidth, scale_pow, |
Irregu::draw(coords1, vert, norm, texscale, |
1350 |
|
linewidth, refsize, scale_pow, |
1351 |
border0, border1, |
border0, border1, |
1352 |
&const0[0], &const1[0], |
&const0[0], &const1[0], |
1353 |
angles, multi, flags); |
angles, multi, flags); |