mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-04-05 11:19:39 -04:00
Fix ExportImageToMemory and formatting issues (#245)
This commit is contained in:
parent
502a583e07
commit
5949934932
Raylib-cs
@ -1368,7 +1368,7 @@ public static unsafe partial class Raylib
|
|||||||
|
|
||||||
/// <summary>Export image to memory buffer</summary>
|
/// <summary>Export image to memory buffer</summary>
|
||||||
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern char* ExportImageToMemory(Image image, sbyte* fileType, int *fileSize);
|
public static extern byte* ExportImageToMemory(Image image, sbyte* fileType, int* fileSize);
|
||||||
|
|
||||||
/// <summary>Export image as code file defining an array of bytes</summary>
|
/// <summary>Export image as code file defining an array of bytes</summary>
|
||||||
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
|
@ -48,7 +48,10 @@ public partial struct Rectangle
|
|||||||
|
|
||||||
public Vector2 Position
|
public Vector2 Position
|
||||||
{
|
{
|
||||||
readonly get { return new Vector2(X,Y); }
|
readonly get
|
||||||
|
{
|
||||||
|
return new Vector2(X, Y);
|
||||||
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
X = value.X;
|
X = value.X;
|
||||||
@ -58,7 +61,10 @@ public partial struct Rectangle
|
|||||||
|
|
||||||
public Vector2 Size
|
public Vector2 Size
|
||||||
{
|
{
|
||||||
readonly get { return new Vector2(Width,Height); }
|
readonly get
|
||||||
|
{
|
||||||
|
return new Vector2(Width, Height);
|
||||||
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
Width = value.X;
|
Width = value.X;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user