From a2194849b66f51e3a9e17e8fc485b616d52a5dff Mon Sep 17 00:00:00 2001 From: Darth Affe Date: Sun, 23 Apr 2023 18:05:24 +0200 Subject: [PATCH] Changed stride and DataPerPixel in the PixelTexture to be a property for consistency --- RGB.NET.Core/Rendering/Textures/PixelTexture.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RGB.NET.Core/Rendering/Textures/PixelTexture.cs b/RGB.NET.Core/Rendering/Textures/PixelTexture.cs index 8fd1da6..170d2d5 100644 --- a/RGB.NET.Core/Rendering/Textures/PixelTexture.cs +++ b/RGB.NET.Core/Rendering/Textures/PixelTexture.cs @@ -14,7 +14,7 @@ public abstract class PixelTexture : ITexture where T : unmanaged { #region Properties & Fields - + /// /// Gets the underlying pixel data. /// @@ -23,12 +23,12 @@ public abstract class PixelTexture : ITexture /// /// Gets the amount of data-entries per pixel. /// - protected readonly int DataPerPixel; + protected int DataPerPixel { get; } /// /// Gets the stride of the data. /// - protected readonly int Stride; + protected int Stride { get; } /// /// Gets or sets the sampler used to get the color of a region.