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

Method Reset

Source/Engine/Utilities/RectPack.h:140–147  ·  view source on GitHub ↗

Clears and resets atlas back to the initial state.

Source from the content-addressed store, hash-verified

138 /// Clears and resets atlas back to the initial state.
139 /// </summary>
140 void Reset()
141 {
142 Width = 0;
143 Height = 0;
144 BordersPadding = 0;
145 Nodes.Clear();
146 FreeNodes.Clear();
147 }
148
149 /// <summary>
150 /// Tries to insert a node into the atlas using rectangle pack algorithm.

Callers 2

TestNullable.cppFile · 0.45
DrawMethod · 0.45

Calls 1

ClearMethod · 0.45

Tested by

no test coverage detected