예제 #1
0
        public TerrainClipmapRenderer(IGraphicsService graphicsService)
        {
            if (graphicsService == null)
            {
                throw new ArgumentNullException("graphicsService");
            }

            if (graphicsService.GraphicsDevice.GraphicsProfile == GraphicsProfile.Reach)
            {
                throw new NotSupportedException("The TerrainClipmapRenderer does not support the Reach profile.");
            }

            _clearLayer = new TerrainClearLayer(graphicsService);
        }
예제 #2
0
        public TerrainClipmapRenderer(IGraphicsService graphicsService)
        {
            if (graphicsService == null)
            throw new ArgumentNullException("graphicsService");

              if (graphicsService.GraphicsDevice.GraphicsProfile == GraphicsProfile.Reach)
            throw new NotSupportedException("The TerrainClipmapRenderer does not support the Reach profile.");

              _clearLayer = new TerrainClearLayer(graphicsService);
        }