MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / NeedEyes

Function NeedEyes

jni/stasm/eyedet.cpp:193–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193bool NeedEyes( // true if we need the eye detectors for the given mods
194 const vec_Mod& mods) // in: the ASM model(s)
195{
196 static bool need_eyes = true; // static for efficiency
197 if (need_eyes && leye_det_g.empty()) // not yet opened?
198 {
199 // use the estart field to determine if we need the eyes for any model
200 need_eyes = false;
201 for (int imod = 0; imod < NSIZE(mods); imod++)
202 {
203 ESTART estart = mods[imod]->Estart_();
204 if (estart == ESTART_EYES ||
205 estart == ESTART_EYE_AND_MOUTH)
206 {
207 need_eyes = true;
208 }
209 }
210 }
211 return need_eyes;
212}
213
214bool NeedMouth( // true if we need the mouth detector for the given mods
215 const vec_Mod& mods) // in: the ASM model(s)

Callers 1

OpenEyeMouthDetectorsFunction · 0.85

Calls 2

NSIZEFunction · 0.85
Estart_Method · 0.80

Tested by

no test coverage detected