2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-07-02 19:13:43 -04:00

BREAKING: Update names of methods, variables, and other elements (#181)

Breaking change to update naming across Raylib-cs to make it more consistent with C# naming conventions.

---------

Co-authored-by: MrScautHD <65916181+MrScautHD@users.noreply.github.com>
This commit is contained in:
2023-08-14 21:33:48 +01:00
committed by GitHub
parent 8edc98ad95
commit 23ed54cc24
30 changed files with 1280 additions and 1293 deletions

View File

@ -12,29 +12,29 @@ namespace Raylib_cs
/// <summary>
/// Camera offset (displacement from target)
/// </summary>
public Vector2 offset;
public Vector2 Offset;
/// <summary>
/// Camera target (rotation and zoom origin)
/// </summary>
public Vector2 target;
public Vector2 Target;
/// <summary>
/// Camera rotation in degrees
/// </summary>
public float rotation;
public float Rotation;
/// <summary>
/// Camera zoom (scaling), should be 1.0f by default
/// </summary>
public float zoom;
public float Zoom;
public Camera2D(Vector2 offset, Vector2 target, float rotation, float zoom)
{
this.offset = offset;
this.target = target;
this.rotation = rotation;
this.zoom = zoom;
this.Offset = offset;
this.Target = target;
this.Rotation = rotation;
this.Zoom = zoom;
}
}
}