MCPcopy Create free account
hub / github.com/carbonengine/trinity / SubmitChanges

Method SubmitChanges

trinity/Tr2LineSet.cpp:204–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204bool Tr2LineSet::SubmitChanges()
205{
206 if( m_lines.size() > m_maxCurrentLineCount )
207 {
208 // increase the size of the buffer
209 m_maxCurrentLineCount = (unsigned int)m_lines.capacity();
210 if( m_triangles.size() > m_maxCurrentTriangleCount )
211 {
212 m_maxCurrentTriangleCount = (unsigned int)m_triangles.capacity();
213 }
214 }
215
216 ReleaseResources( TRISTORAGE_ALL );
217 PrepareResources();
218
219 return true;
220}
221
222void Tr2LineSet::SetCurrentColor( Color& val )
223{

Callers 4

GenLineSetsMethod · 0.45
GenLineSetsMethod · 0.45
GenLineSetsMethod · 0.45
UpdateLinesMethod · 0.45

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected