Exemplo n.º 1
0
        private void DrawText()
        {
            _text.Clear();
            _text.AppendLine("Keys:");
            _text.AppendLine("  Home  - Home Position");
            _text.AppendLine("  Space - Toggle Skybox Maps");
            _text.AppendLine("  B/D   - SkyBox / SkyDome");
            _text.AppendLine();
            _text.AppendFormat("{5} \"{0}\" ({1}/{2}): {3}x{3} {4}",
                               _skyBoxNames[_currentSkyBox], _currentSkyBox + 1, _skyBoxNames.Length,
                               _skyBoxMap.Width, _skyBoxMap.IsBlockCompressed ? "DXT" : "Uncompressed",
                               _skyBox.Name);

            using (_spriteBatch.Block())
            {
                _spriteBatch.DrawString(_font, _text.ToString(), new Vector2(16, 16), Color.White);
            }
        }