From 01fd14913e39a251af36cf32f8958888afa1e17a Mon Sep 17 00:00:00 2001 From: JupiterRider <60042618+JupiterRider@users.noreply.github.com> Date: Fri, 6 Dec 2024 20:48:45 +0100 Subject: [PATCH] DrawModelPoints* methods added --- Raylib-cs/interop/Raylib.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Raylib-cs/interop/Raylib.cs b/Raylib-cs/interop/Raylib.cs index b69c8d4..c957fe9 100644 --- a/Raylib-cs/interop/Raylib.cs +++ b/Raylib-cs/interop/Raylib.cs @@ -2427,6 +2427,21 @@ public static unsafe partial class Raylib Color tint ); + /// Draw a model as points + [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern void DrawModelPoints(Model model, Vector3 position, float scale, Color tint); + + /// Draw a model as points with extended parameters + [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] + public static extern void DrawModelPointsEx( + Model model, + Vector3 position, + Vector3 rotationAxis, + float rotationAngle, + Vector3 scale, + Color tint + ); + /// Draw bounding box (wires) [DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void DrawBoundingBox(BoundingBox box, Color color);