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:
parent
d723905f5c
commit
c0a9549454
11 changed files with 121 additions and 299 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue