MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ModelDrawTransition

Function ModelDrawTransition

Source/Engine/Graphics/Models/ModelDraw.h:11–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10template<typename ModelType, typename DrawInfoType>
11FORCE_INLINE bool ModelDrawTransition(ModelType* model, const DrawInfoType& info)
12{
13 for (auto& e : *info.Buffer)
14 {
15 if (e.Material && EnumHasAllFlags(e.Material->GetInfo().FeaturesFlags, MaterialFeaturesFlags::DitheredLODTransition))
16 return true;
17 }
18 for (auto& e : model->MaterialSlots)
19 {
20 if (e.Material && EnumHasAllFlags(e.Material->GetInfo().FeaturesFlags, MaterialFeaturesFlags::DitheredLODTransition))
21 return true;
22 }
23 return false;
24}
25
26template<typename ModelType, typename DrawInfoType, typename ContextType>
27FORCE_INLINE void ModelDraw(ModelType* model, const RenderContext& renderContext, const ContextType& context, const DrawInfoType& info)

Callers 1

ModelDrawFunction · 0.85

Calls 2

EnumHasAllFlagsFunction · 0.85
GetInfoMethod · 0.45

Tested by

no test coverage detected