コード例 #1
0
        protected override void LoadTextures()
        {
            Log.WriteLine("Loading textures...");

            Log.WriteLine($"Loading font atlas '{FontName}'...");
            fontAtlas = Atlas.FromFile(
                FontAtlas.GetAtlasFileFromName("./cache/fonts", FontName).FullName,
                FontAtlas.GetAtlasMetadataFileFromName("./cache/fonts", FontName).FullName
                );

            fontAtlasTexture = LoadTexture(fontAtlas.Data, TextureWrapMode.ClampToBorder);
        }