struct fields should be public

main
cosmonaut 2022-06-17 14:07:15 -07:00
parent 7ea9a2d73c
commit a3bc386526
1 changed files with 17 additions and 17 deletions

View File

@ -45,10 +45,10 @@ namespace WellspringCS
[StructLayout(LayoutKind.Sequential)]
public struct FontRange
{
uint FirstCodepoint;
uint NumChars;
byte OversampleH;
byte OversampleV;
public uint FirstCodepoint;
public uint NumChars;
public byte OversampleH;
public byte OversampleV;
}
[StructLayout(LayoutKind.Sequential)]
@ -63,24 +63,24 @@ namespace WellspringCS
[StructLayout(LayoutKind.Sequential)]
public struct Vertex
{
float X;
float Y;
float Z;
float U;
float V;
byte R;
byte G;
byte B;
byte A;
public float X;
public float Y;
public float Z;
public float U;
public float V;
public byte R;
public byte G;
public byte B;
public byte A;
}
[StructLayout(LayoutKind.Sequential)]
public struct Rectangle
{
float X;
float Y;
float W;
float H;
public float X;
public float Y;
public float W;
public float H;
}
public enum HorizontalAlignment