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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user