Beispiel #1
0
        public void Render(DirectX directXDevice, ShaderManager shaderManager, Matrix worldMatrix, Matrix viewMatrix, Matrix orthoMatrix)
        {
            directXDevice.SetZBuffer(false);
            directXDevice.SetAlphaBlending(true);

            FpsString.Render(directXDevice.DeviceContext, shaderManager, worldMatrix, viewMatrix, orthoMatrix, Font.Texture.TextureResource);

            foreach (var positionString in PositionStrings)
            {
                positionString.Render(directXDevice.DeviceContext, shaderManager, worldMatrix, viewMatrix, orthoMatrix, Font.Texture.TextureResource);
            }

            foreach (var videoString in VideoStrings)
            {
                videoString.Render(directXDevice.DeviceContext, shaderManager, worldMatrix, viewMatrix, orthoMatrix, Font.Texture.TextureResource);
            }

            directXDevice.SetZBuffer(true);
            directXDevice.SetAlphaBlending(false);
        }