Exemple #1
0
        private bool LoadTexture(TerrainTexture.TextureName textureName)
        {
            switch (textureName)
            {
            case TerrainTexture.TextureName.GrassDiffuseTexture:
                return(GrassDiffuseTexture.Load());

            case TerrainTexture.TextureName.RuinedDiffuseTexture:
                return(RuinedDiffuseTexture.Load());

            case TerrainTexture.TextureName.PavementDiffuseTexture:
                return(PavementDiffuseTexture.Load());

            case TerrainTexture.TextureName.GravelDiffuseTexture:
                return(GravelDiffuseTexture.Load());

            case TerrainTexture.TextureName.CliffDiffuseTexture:
                return(CliffDiffuseTexture.Load());

            case TerrainTexture.TextureName.OilDiffuseTexture:
                return(OilDiffuseTexture.Load());

            case TerrainTexture.TextureName.OreDiffuseTexture:
                return(OreDiffuseTexture.Load());

            case TerrainTexture.TextureName.SandDiffuseTexture:
                return(SandDiffuseTexture.Load());

            case TerrainTexture.TextureName.CliffSandNormalTexture:
                return(CliffSandNormalTexture.Load());

            default: return(false);
            }
        }