Пример #1
0
        /// <summary>
        /// Causes a direct screen paint rendering of a quad that covers the specified world area.
        /// </summary>
        /// <param name="area">The area in world space to render.</param>
        public void DirectScreenPaint(VertexPrimitive area)
        {
            VertexPrimitive pixelArea = this.gameWorld.GetPixelFromWorld(area);

            // Render the quad
            this.GraphicsDevice.DrawUserPrimitives(pixelArea.PrimitiveType, pixelArea.GetVertexData(), 0, pixelArea.Count - 2, VertexPositionTexture.VertexDeclaration);
        }