Update RingRayLib - raylib.c - Add Function : void DrawCubeTexture(Texture2D texture, Vector3 position, float width, float height, float length, Color color)
@@ -4692,6 +4692,34 @@ RING_FUNC(ring_DrawCubeWiresV)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(3,"Color"));
}
+
+RING_FUNC(ring_DrawCubeTexture)
+{
+ if ( RING_API_PARACOUNT != 6 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(5) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ DrawCubeTexture(* (Texture2D *) RING_API_GETCPOINTER(1,"Texture2D"),* (Vector3 *) RING_API_GETCPOINTER(2,"Vector3"), (float ) RING_API_GETNUMBER(3), (float ) RING_API_GETNUMBER(4), (float ) RING_API_GETNUMBER(5),* (Color *) RING_API_GETCPOINTER(6,"Color"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Texture2D"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(2,"Vector3"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(6))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(6,"Color"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -4960,4 +4988,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("drawcubev",ring_DrawCubeV);
ring_vm_funcregister("drawcubewires",ring_DrawCubeWires);
ring_vm_funcregister("drawcubewiresv",ring_DrawCubeWiresV);
+ ring_vm_funcregister("drawcubetexture",ring_DrawCubeTexture);
}
