2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-09-09 03:01:41 -04:00

Multi-target net5.0

This commit is contained in:
2021-12-17 12:48:56 +00:00
parent 6d7ac90088
commit 3e8e4a6319
7 changed files with 232 additions and 212 deletions

View File

@@ -97,7 +97,7 @@ namespace Raylib_cs
return ImageTextEx(font, p, fontSize, spacing, tint);
}
}
public static void ImageToPOT(ref Image image, Color fill)
{
fixed (Image* p = &image)
@@ -274,6 +274,24 @@ namespace Raylib_cs
}
}
/// <inheritdoc cref="ImageDrawPixel(Image*, int, int, Color)"/>
public static void ImageDrawPixel(ref Image dst, int posX, int posY, Color color)
{
fixed (Image* p = &dst)
{
ImageDrawPixel(p, posX, posY, color);
}
}
/// <inheritdoc cref="ImageDrawPixelV(Image*, Vector2, Color)"/>
public static void ImageDrawPixelV(ref Image dst, Vector2 position, Color color)
{
fixed (Image* p = &dst)
{
ImageDrawPixelV(p, position, color);
}
}
/// <inheritdoc cref="ImageDrawText(Image*, byte*, int, int, int, Color)"/>
public static void ImageDrawText(ref Image dst, Utf8String text, int x, int y, int fontSize, Color color)
{