MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenImageIO / initialize_opt

Function initialize_opt

src/testtex/testtex.cpp:196–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194
195
196static void
197initialize_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

Callers 3

plain_tex_regionFunction · 0.85
tex3d_regionFunction · 0.85
do_tex_thread_workoutFunction · 0.85

Calls 2

parse_wrapmodesFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected