Пример #1
0
void SpriteBatch::end() {
   GlyphsPointers.resize(Glyphs.size());
   for(int i = 0; i < Glyphs.size(); i++) {
      GlyphsPointers[i] = &Glyphs[i];
   }
   sortGlyphs();
   createRenderBatches();
}
Пример #2
0
	void SpriteBatch::end()
	{
		// set up all glyph for faster sorting
		m_glyphPointers.resize(m_glyphs.size());
		for (int i = 0; i < m_glyphs.size(); i++)
			m_glyphPointers[i] = &m_glyphs[i];

		sortGlyphs();
		createRenderBatches();
	}
Пример #3
0
void SpriteBatch::end() {
    // Set up all pointers for fast sorting
    _glyphPointers.resize(_glyphs.size());
    for (size_t i = 0; i < _glyphs.size(); i++) {
        _glyphPointers[i] = &_glyphs[i];
    }

    sortGlyphs();
    createRenderBatches();
}
Пример #4
0
        void SpriteBatch::end()
        {
            _glyphPointers.resize(_glyphs.size());

            //setting up pointers for fast sorting
            for (auto i = 0; i < _glyphs.size(); i++)
                _glyphPointers[i] = &_glyphs[i];

            sortGlyphs();

            createRenderBatches();
        }
Пример #5
0
 void SpriteBatch::end() {
   sortGlyphs();
   createRenderBatches();
 }
Пример #6
0
	void SpriteBatch::end()
	{
		sortGlyphs();
	}