daily update on 20241002 by nitload youmu, intrinsic function rebuild, syntax style arrange
This commit is contained in:
@@ -38,26 +38,44 @@ namespace StgSharp.Graphics
|
||||
public interface IPixel
|
||||
{
|
||||
|
||||
public float Red { get; set; }
|
||||
public float Green { get; set; }
|
||||
public float Blue { get; set; }
|
||||
public float Alpha { get; set; }
|
||||
public float Red
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
internal int Size { get; }
|
||||
public float Green
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public float Blue
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public float Alpha
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
internal int Size
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Explicit, Size = 32)]
|
||||
[StructLayout( LayoutKind.Explicit, Size = 32 )]
|
||||
public unsafe struct Pixel32
|
||||
{
|
||||
|
||||
[FieldOffset(0)] private unsafe fixed byte data[4];
|
||||
[FieldOffset( 0 )] private unsafe fixed byte data[ 4 ];
|
||||
|
||||
internal int Size => 4;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user