Alexandria.Engines.DarkSouls.Model.Draw C# (CSharp) Method

Draw() public method

Draw the Model.
public Draw ( ModelDrawContext drawContext ) : void
drawContext ModelDrawContext
return void
        public void Draw(ModelDrawContext drawContext)
        {
            foreach (var mesh in meshes)
                mesh.Draw(drawContext);
        }

Usage Example

Exemplo n.º 1
0
        /// <summary>
        /// Render the model.
        /// </summary>
        protected override void Render()
        {
            base.Render();

            var context = new ModelDrawContext()
            {
                Projection  = Projection,
                View        = View,
                World       = World,
                DisplayMode = Program.DisplayMode,
            };

            Model.Draw(context);
        }