コード例 #1
0
 public Sprite(TextureRegion2D region) : base()
 {
     TextureRegion = region;
 }
コード例 #2
0
 /// <summary>
 /// Sets the texture for the particle. This can be overridden to allow
 /// for an animated particle.
 /// </summary>
 /// <param name="texture">The texture to set.</param>
 public virtual void ApplyArt(TextureRegion2D texture)
 {
     TextureRegion = texture;
 }
コード例 #3
0
 public Sprite(Texture2D texture) : base()
 {
     TextureRegion = new TextureRegion2D(texture);
 }