Esempio n. 1
0
        internal void Unuse(RenderBatcher2D batcher)
        {
            if (!m_inUse)
            {
                throw new InvalidOperationException("Cannot Unuse a batch which is not in use.");
            }
            if (batcher != m_batcher)
            {
                throw new InvalidOperationException("Tried to Unuse a batcher that is not associated with this batch.");
            }

            m_inUse = false;
            batcher.End();
        }
Esempio n. 2
0
 public RenderBatch2D(ClientResourceManager resources)
 {
     Resources = resources;
     m_batcher = new RenderBatcher2D(this);
 }