예제 #1
0
 /// <summary>
 /// Copies this instance of rendering info to an another
 /// </summary>
 /// <param name="other">Rendering info instance receiving all data of this instance</param>
 public void CopyTo(RenderingInfo other)
 {
     other.VertexData = VertexData;
     other.IndexData = IndexData;
     other.PrimitiveType = PrimitiveType;
     other.PrimitiveCount = PrimitiveCount;
     other.VertexCount = VertexCount;
     other.UseIndexes = UseIndexes;
 }
예제 #2
0
        /// <summary>
        /// Get the rendering info for this batch
        /// </summary>
        private void ExtractRenderingInfo()
        {
            if (_renderInfoInit) return;

            IRenderable renderable = _instances[0];
            _material = renderable.Material;
            _renderInfo = renderable.RenderInfo;
            _renderInfoInit = true;
        }