MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / InitEffectParams

Function InitEffectParams

Engine/lib/openal-soft/al/effect.cpp:139–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void InitEffectParams(ALeffect *effect, ALenum type)
140{
141 const EffectPropsItem *item{getEffectPropsItemByType(type)};
142 if(item)
143 {
144 effect->Props = item->DefaultProps;
145 effect->vtab = &item->Vtable;
146 }
147 else
148 {
149 effect->Props = EffectProps{};
150 effect->vtab = &NullEffectVtable;
151 }
152 effect->type = type;
153}
154
155bool EnsureEffects(ALCdevice *device, size_t needed)
156{

Callers 4

AllocEffectFunction · 0.85
effect.cppFile · 0.85
InitEffectFunction · 0.85
LoadReverbPresetFunction · 0.85

Calls 1

getEffectPropsItemByTypeFunction · 0.85

Tested by

no test coverage detected