コード例 #1
0
        public static void LoadTextures(string textureFile)
        {
            ExceptionHelper.AssertFileExists(textureFile, "GeneralTextureManager.LoadTextures()");

            TextureManager.LoadTextures(textureFile);
            FramedTextureManager.LoadTextures(textureFile);
        }
コード例 #2
0
 private static SFML.Graphics.Texture GetRightTexture(string name, TextureType type)
 {
     if (type == TextureType.SFML)
     {
         return(TextureManager.GetTexture(name));
     }
     else
     {
         return(FramedTextureManager.GetTexture(name));
     }
 }