2012-07-07 20:57:54 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.Xna.Framework.Graphics
|
|
|
|
|
{
|
|
|
|
|
public class Texture2D : IDisposable
|
|
|
|
|
{
|
|
|
|
|
private UnityEngine.Texture2D unityTexture;
|
|
|
|
|
|
|
|
|
|
public UnityEngine.Texture2D UnityTexture
|
|
|
|
|
{
|
|
|
|
|
get { return unityTexture; }
|
|
|
|
|
set { unityTexture = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Texture2D()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Texture2D(UnityEngine.Texture2D unityTexture)
|
|
|
|
|
{
|
|
|
|
|
// TODO: Complete member initialization
|
|
|
|
|
this.unityTexture = unityTexture;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int Width
|
|
|
|
|
{
|
|
|
|
|
get { return unityTexture.width; }
|
|
|
|
|
}
|
|
|
|
|
public int Height
|
|
|
|
|
{
|
|
|
|
|
get { return unityTexture.height; }
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-19 21:55:55 +02:00
|
|
|
|
public Rectangle Bounds
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return new Rectangle(0, 0, unityTexture.width, unityTexture.height);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2012-07-07 20:57:54 +01:00
|
|
|
|
public void Dispose()
|
|
|
|
|
{ }
|
|
|
|
|
}
|
|
|
|
|
}
|