示例#1
0
        private static NoiseTextures GetNoiseTextures(IGraphicsService graphicsService)
        {
            const string key = "__NoiseTextures";
            object       textures;

            if (!graphicsService.Data.TryGetValue(key, out textures) || !(textures is NoiseTextures))
            {
                textures = new NoiseTextures();
                graphicsService.Data[key] = textures;
            }

            return((NoiseTextures)textures);
        }
示例#2
0
        private static NoiseTextures GetNoiseTextures(IGraphicsService graphicsService)
        {
            const string key = "__NoiseTextures";
              object textures;
              if (!graphicsService.Data.TryGetValue(key, out textures) || !(textures is NoiseTextures))
              {
            textures = new NoiseTextures();
            graphicsService.Data[key] = textures;
              }

              return (NoiseTextures)textures;
        }