2014-01-27 00:02:21 +00:00
|
|
|
namespace BizHawk.Bizware.BizwareGL
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a piece of 2d art. Not as versatile as a texture.. could have come from an atlas. So it comes with a boatload of constraints
|
|
|
|
/// </summary>
|
|
|
|
public class Art
|
|
|
|
{
|
2019-01-18 05:59:23 +00:00
|
|
|
//bleh, didnt mean to have this here, but I need it now
|
|
|
|
public Art(Texture2d tex)
|
|
|
|
{
|
|
|
|
BaseTexture = tex;
|
|
|
|
u1 = 1;
|
|
|
|
v1 = 1;
|
|
|
|
Width = tex.Width;
|
|
|
|
Height = tex.Height;
|
|
|
|
}
|
|
|
|
|
2014-01-27 00:02:21 +00:00
|
|
|
internal Art(ArtManager owner)
|
|
|
|
{
|
|
|
|
Owner = owner;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ArtManager Owner { get; private set; }
|
|
|
|
public Texture2d BaseTexture { get; internal set; }
|
|
|
|
|
|
|
|
public float Width, Height;
|
|
|
|
public float u0, v0, u1, v1;
|
|
|
|
|
|
|
|
internal void Initialize()
|
|
|
|
{
|
|
|
|
//TBD
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|