| 194 | |
| 195 | |
| 196 | static void |
| 197 | initialize_opt (TextureOpt &opt, int nchannels) |
| 198 | { |
| 199 | opt.sblur = sblur; |
| 200 | opt.tblur = tblur >= 0.0f ? tblur : sblur; |
| 201 | opt.rblur = sblur; |
| 202 | opt.swidth = width; |
| 203 | opt.twidth = width; |
| 204 | opt.rwidth = width; |
| 205 | opt.nchannels = nchannels; |
| 206 | opt.fill = (fill >= 0.0f) ? fill : 1.0f; |
| 207 | if (missing[0] >= 0) |
| 208 | opt.missingcolor = (float *)&missing; |
| 209 | TextureOpt::parse_wrapmodes (wrapmodes.c_str(), opt.swrap, opt.twrap); |
| 210 | opt.rwrap = opt.swrap; |
| 211 | opt.anisotropic = anisotropic; |
| 212 | } |
| 213 | |
| 214 | |
| 215 |
no test coverage detected