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);
        }