All pastes #372451 Raw Edit

Miscellany

public text v1 · immutable
#372451 ·published 2007-02-26 01:42 UTC
rendered paste body
           }


            this.m_Sprite.Begin ( SpriteFlags.AlphaBlend );

            this.m_Sprite.Transform = Matrix.RotationZ ( Geometry.DegreeToRadian ( texture.Rotation ) ) * Matrix.Translation ( texture.Translation.X , texture.Translation.Y , 0 ); //position is a Vector3

            this.m_Sprite.Draw ( texture.Texture , new Vector3 ( texture.RotationCenter.X , texture.RotationCenter.Y , 0f ) , Vector3.Empty , m_Color );

            this.m_Sprite.End ( );
        }

        public void Dispose ( )
        {
            if ( !this.Disposed )
            {
                if ( this.m_Sprite != null )
                {
                    this.m_Sprite.Dispose ( );
                }
                this.Disposed = true;
            }
        }
    }
}