| 202 | } |
| 203 | |
| 204 | bool 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 | |
| 222 | void Tr2LineSet::SetCurrentColor( Color& val ) |
| 223 | { |
no test coverage detected