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