private ITexture createTexture(ILoadImageConfig config) { ITextureConfig textureConfig = config == null ? null : config.TextureConfig; TypedParameter textureConfigParam = new TypedParameter(typeof(ITextureConfig), textureConfig); return(_resolver.Container.Resolve <ITexture>(textureConfigParam)); }
public GLTexture(ITextureConfig config, IGraphicsBackend graphics) { _graphics = graphics; if (Environment.CurrentManagedThreadId != AGSGame.UIThreadID) { throw new InvalidOperationException("Must generate textures on the UI thread"); } ID = _graphics.GenTexture(); Config = config ?? new AGSTextureConfig(); }
public AGSLoadImageConfig(Point?transparentColorSamplePoint = null, ITextureConfig config = null) { TransparentColorSamplePoint = transparentColorSamplePoint; TextureConfig = config ?? new AGSTextureConfig(); }
public AGSLoadImageConfig(Point? transparentColorSamplePoint = null, ITextureConfig config = null) { TransparentColorSamplePoint = transparentColorSamplePoint; TextureConfig = config ?? new AGSTextureConfig(); }