Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 public AGSLoadImageConfig(Point?transparentColorSamplePoint = null, ITextureConfig config = null)
 {
     TransparentColorSamplePoint = transparentColorSamplePoint;
     TextureConfig = config ?? new AGSTextureConfig();
 }
Exemplo n.º 5
0
        public AGSLoadImageConfig(Point? transparentColorSamplePoint = null, ITextureConfig config = null)
		{
            TransparentColorSamplePoint = transparentColorSamplePoint;
            TextureConfig = config ?? new AGSTextureConfig();
		}