internal Texture(ITextureAdapter adapter, int glHandle, int width, int height, byte[] data) { if (adapter == null) { throw new ArgumentNullException(nameof(adapter)); } this.adapter = adapter; this.handle = glHandle; this.width = width; this.height = height; this.data = data; }
internal TextureLoader(ITextureAdapter adapter, IFileSystem fileSystem) { if (adapter == null) { throw new ArgumentNullException(nameof(adapter)); } if (fileSystem == null) { throw new ArgumentNullException(nameof(fileSystem)); } this.adapter = adapter; this.fileSystem = fileSystem; }