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

Function Draw

Source/Engine/Content/Assets/Model.h:86–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 /// <param name="perInstanceRandom">The random per-instance value (normalized to range 0-1).</param>
85 /// <param name="sortOrder">Object sorting key.</param>
86 API_FUNCTION() void Draw(API_PARAM(Ref) const RenderContext& renderContext, MaterialBase* material, API_PARAM(Ref) const Matrix& world, StaticFlags flags = StaticFlags::None, bool receiveDecals = true, DrawPass drawModes = DrawPass::Default, float perInstanceRandom = 0.0f, int8 sortOrder = 0) const
87 {
88 for (int32 i = 0; i < Meshes.Count(); i++)
89 Meshes.Get()[i].Draw(renderContext, material, world, flags, receiveDecals, drawModes, perInstanceRandom, sortOrder);
90 }
91
92 /// <summary>
93 /// Draws all the meshes from the model LOD.

Callers

nothing calls this directly

Calls 3

CountMethod · 0.45
DrawMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected