Update simple structs to record structs
This commit is contained in:
parent
7db9848fb2
commit
8737aa73a9
7 changed files with 8 additions and 8 deletions
|
|
@ -5,7 +5,7 @@ namespace Raylib_cs;
|
||||||
|
|
||||||
/// <summary>Bounding box type</summary>
|
/// <summary>Bounding box type</summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public partial struct BoundingBox
|
public partial record struct BoundingBox
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Minimum vertex box-corner
|
/// Minimum vertex box-corner
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ namespace Raylib_cs;
|
||||||
/// Camera2D, defines position/orientation in 2d space
|
/// Camera2D, defines position/orientation in 2d space
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct Camera2D
|
public record struct Camera2D
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Camera offset (displacement from target)
|
/// Camera offset (displacement from target)
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ public enum CameraProjection
|
||||||
/// Camera3D, defines position/orientation in 3d space
|
/// Camera3D, defines position/orientation in 3d space
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct Camera3D
|
public record struct Camera3D
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Camera position
|
/// Camera position
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ namespace Raylib_cs;
|
||||||
/// Color type, RGBA (32bit)
|
/// Color type, RGBA (32bit)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct Color
|
public record struct Color
|
||||||
{
|
{
|
||||||
public byte R;
|
public byte R;
|
||||||
public byte G;
|
public byte G;
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ namespace Raylib_cs;
|
||||||
/// Ray, ray for raycasting
|
/// Ray, ray for raycasting
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct Ray
|
public record struct Ray
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Ray position (origin)
|
/// Ray position (origin)
|
||||||
|
|
@ -30,7 +30,7 @@ public struct Ray
|
||||||
/// Raycast hit information
|
/// Raycast hit information
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct RayCollision
|
public record struct RayCollision
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Did the ray hit something?
|
/// Did the ray hit something?
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ namespace Raylib_cs;
|
||||||
/// Rectangle type
|
/// Rectangle type
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct Rectangle
|
public record struct Rectangle
|
||||||
{
|
{
|
||||||
public float X;
|
public float X;
|
||||||
public float Y;
|
public float Y;
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ namespace Raylib_cs;
|
||||||
/// Transform, vertex transformation data
|
/// Transform, vertex transformation data
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct Transform
|
public record struct Transform
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Translation
|
/// Translation
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue