예제 #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));
        }
예제 #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();
 }
예제 #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();
 }
예제 #4
0
 public AGSLoadImageConfig(Point?transparentColorSamplePoint = null, ITextureConfig config = null)
 {
     TransparentColorSamplePoint = transparentColorSamplePoint;
     TextureConfig = config ?? new AGSTextureConfig();
 }
예제 #5
0
        public AGSLoadImageConfig(Point? transparentColorSamplePoint = null, ITextureConfig config = null)
		{
            TransparentColorSamplePoint = transparentColorSamplePoint;
            TextureConfig = config ?? new AGSTextureConfig();
		}