public TextureInPoint( CachedTexture texture, Quadrangle quadrangle ) { this._angel = 0.0f; this._texture = texture; this._quadrangle = quadrangle; this.CalculateBlocks(); this._width = 0.01f; this._heigth = 0.01f; }
public CachedTexture Load( string assetName ) { var texture = default( CachedTexture ); if ( this._textures.TryGetValue( assetName, out texture ) ) { return texture; } texture = new CachedTexture( assetName ) { Textrue = this._contentManager.Load<Texture2D>( assetName ) }; this._textures.Add( assetName, texture ); return texture; }