mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-12 17:48:31 +00:00
Changed stride and DataPerPixel in the PixelTexture to be a property for consistency
This commit is contained in:
parent
9f8e64fbcb
commit
a2194849b6
@ -14,7 +14,7 @@ public abstract class PixelTexture<T> : ITexture
|
||||
where T : unmanaged
|
||||
{
|
||||
#region Properties & Fields
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets the underlying pixel data.
|
||||
/// </summary>
|
||||
@ -23,12 +23,12 @@ public abstract class PixelTexture<T> : ITexture
|
||||
/// <summary>
|
||||
/// Gets the amount of data-entries per pixel.
|
||||
/// </summary>
|
||||
protected readonly int DataPerPixel;
|
||||
protected int DataPerPixel { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the stride of the data.
|
||||
/// </summary>
|
||||
protected readonly int Stride;
|
||||
protected int Stride { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the sampler used to get the color of a region.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user