Watch
2
0
Fork
You've already forked raylib-cs
0

Preserve raylib types

Removed "Cricle" and "Line" structs (and their extension methods) to conserve only raylib types.

Added "Dimensions" property to "Texture2D"
Added another "Load" overload for the "Texture2D" extensions (load from memory)

New overloads for the "LoadFileData" and "SaveFileData" methods
This commit is contained in:
Matorio 2025-07-11 21:48:06 -05:00
commit c0a9549454
11 changed files with 121 additions and 299 deletions

View file

@ -1,4 +1,5 @@
using System.Runtime.InteropServices;
using System.Numerics;
namespace Raylib_cs;
@ -128,4 +129,15 @@ public partial struct Texture2D
/// Data format (PixelFormat type)
/// </summary>
public PixelFormat Format;
/// <summary>
/// Get width and height packed in a Vector2
/// </summary>
public Vector2 Dimensions
{
get
{
return new Vector2(Width, Height);
}
}
}