コード例 #1
0
ファイル: RenderingInfo.cs プロジェクト: Julien-Pires/Pulsar
 /// <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
ファイル: InstanceBatch.cs プロジェクト: Julien-Pires/Pulsar
        /// <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;
        }