BEPUphysicsDrawer.Models.InstancedModelDrawer.DrawManagedModels C# (CSharp) Метод

DrawManagedModels() защищенный Метод

Draws the models managed by the drawer.
protected DrawManagedModels ( Matrix viewMatrix, Matrix projectionMatrix ) : void
viewMatrix Microsoft.Xna.Framework.Matrix View matrix to use to draw the objects.
projectionMatrix Microsoft.Xna.Framework.Matrix Projection matrix to use to draw the objects.
Результат void
        protected override void DrawManagedModels(Matrix viewMatrix, Matrix projectionMatrix)
        {
            viewParameter.SetValue(viewMatrix);
            projectionParameter.SetValue(projectionMatrix);

            for (int i = 0; i < instancingEffect.CurrentTechnique.Passes.Count; i++)
            {
                foreach (ModelDisplayObjectBatch batch in batches)
                {
                    batch.Draw(instancingEffect, worldTransformsParameter, textureIndicesParameter, instancingEffect.CurrentTechnique.Passes[i]);
                }
            }
        }
    }