Added missing summeries #1
This commit is contained in:
parent
03d99ea28e
commit
8665b5b709
104 changed files with 1165 additions and 821 deletions
|
|
@ -15,8 +15,8 @@ namespace SM.Base.Textures
|
|||
/// </summary>
|
||||
public class Texture : TextureBase
|
||||
{
|
||||
private int? _width;
|
||||
private int? _height;
|
||||
private int? _width;
|
||||
|
||||
/// <summary>
|
||||
/// Decides if the bitmap will automatically dispose itself.
|
||||
|
|
@ -28,24 +28,6 @@ namespace SM.Base.Textures
|
|||
/// </summary>
|
||||
public Bitmap Map;
|
||||
|
||||
/// <inheritdoc />
|
||||
public override int Width
|
||||
{
|
||||
get => _width ?? Map.Width;
|
||||
protected set => _width = value;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override int Height
|
||||
{
|
||||
get => _height ?? Map.Height;
|
||||
protected set => _height = value;
|
||||
}
|
||||
/// <summary>
|
||||
/// Aspect ratio of Width and Height of the texture
|
||||
/// </summary>
|
||||
public float Aspect { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Empty constructor
|
||||
/// </summary>
|
||||
|
|
@ -72,12 +54,31 @@ namespace SM.Base.Textures
|
|||
{
|
||||
Map = map;
|
||||
|
||||
Aspect = (float)map.Width / map.Height;
|
||||
Aspect = (float) map.Width / map.Height;
|
||||
|
||||
Filter = filter;
|
||||
WrapMode = wrapMode;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override int Width
|
||||
{
|
||||
get => _width ?? Map.Width;
|
||||
protected set => _width = value;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override int Height
|
||||
{
|
||||
get => _height ?? Map.Height;
|
||||
protected set => _height = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Aspect ratio of Width and Height of the texture
|
||||
/// </summary>
|
||||
public float Aspect { get; }
|
||||
|
||||
|
||||
/// <inheritdoc />
|
||||
public override void Compile()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue