Update RingRayLib - raylib.c - Add Function : void DrawBillboard(Camera camera, Texture2D texture, Vector3 center, float size, Color tint)
@@ -5567,6 +5567,28 @@ RING_FUNC(ring_DrawBoundingBox)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(2,"Color"));
}
+
+RING_FUNC(ring_DrawBillboard)
+{
+ if ( RING_API_PARACOUNT != 5 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ DrawBillboard(* (Camera *) RING_API_GETCPOINTER(1,"Camera"),* (Texture2D *) RING_API_GETCPOINTER(2,"Texture2D"),* (Vector3 *) RING_API_GETCPOINTER(3,"Vector3"), (float ) RING_API_GETNUMBER(4),* (Color *) RING_API_GETCPOINTER(5,"Color"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Camera"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(2,"Texture2D"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(3))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(3,"Vector3"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(5))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(5,"Color"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -5878,4 +5900,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("drawmodelwires",ring_DrawModelWires);
ring_vm_funcregister("drawmodelwiresex",ring_DrawModelWiresEx);
ring_vm_funcregister("drawboundingbox",ring_DrawBoundingBox);
+ ring_vm_funcregister("drawbillboard",ring_DrawBillboard);
}
