public GpuSurfaceManager(IApplicationAssembly applicationAssembly, IFontsAssembly fontsAssembly, ISurfaceAssembly surfaceAssembly, IFrameworkMessenger frameworkMessenger, IIdGenerator idGenerator, IStartupPropertiesCache startUpPropertiesCache, IGpuSurfaceCollection gpuSurfaceCollection, IImageSharpLoader imageSharpLoader, IGpuSurfaceFactory gpuSurfaceFactory, ISystemComponents components, IFileSystem fileSystem) { _startUpProperties = startUpPropertiesCache.User; _applicationAssembly = applicationAssembly; _fontsAssembly = fontsAssembly; _surfaceAssembly = surfaceAssembly; _frameworkMessenger = frameworkMessenger; _idGenerator = idGenerator; _surfaceCollection = gpuSurfaceCollection; _imageSharpLoader = imageSharpLoader; _gpuSurfaceFactory = gpuSurfaceFactory; _components = components; _fileSystem = fileSystem; Initalise(); }
private void AddToCollectionTwoInternalTwoRenderTargetsAndOneTexture(IGpuSurfaceCollection collection) { collection.Add(0, new GpuSurface { Type = GpuSurfaceType.Internal | GpuSurfaceType.Texture }); collection.Add(1, new GpuSurface { Type = GpuSurfaceType.Undefined }); collection.Add(2, new GpuSurface { Type = GpuSurfaceType.RenderTarget }); collection.Add(3, new GpuSurface { Type = GpuSurfaceType.RenderTarget }); collection.Add(4, new GpuSurface { Type = GpuSurfaceType.Texture }); }