BEPUphysicsDrawer.Models.ModelDrawer.Draw C# (CSharp) Метод

Draw() публичный Метод

Draws the drawer's models.
public Draw ( Matrix viewMatrix, Matrix projectionMatrix ) : void
viewMatrix Matrix View matrix to use to draw the objects.
projectionMatrix Matrix Projection matrix to use to draw the objects.
Результат void
        public void Draw(Matrix viewMatrix, Matrix projectionMatrix)
        {
            Game.GraphicsDevice.RasterizerState = IsWireframe ? wireframeState : fillState;

            Game.GraphicsDevice.BlendState = BlendState.Opaque;
            Game.GraphicsDevice.DepthStencilState = DepthStencilState.Default;

            foreach (SelfDrawingModelDisplayObject displayObject in selfDrawingDisplayObjects)
                displayObject.Draw(viewMatrix, projectionMatrix);
            DrawManagedModels(viewMatrix, projectionMatrix);
        }