Update RingRayLib - raylib.c - Add Function : void SetMatrixModelview(Matrix view)
@@ -6004,6 +6004,18 @@ RING_FUNC(ring_SetMatrixProjection)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Matrix"));
}
+
+RING_FUNC(ring_SetMatrixModelview)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ SetMatrixModelview(* (Matrix *) RING_API_GETCPOINTER(1,"Matrix"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(1,"Matrix"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -6338,4 +6350,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("setshadervaluematrix",ring_SetShaderValueMatrix);
ring_vm_funcregister("setshadervaluetexture",ring_SetShaderValueTexture);
ring_vm_funcregister("setmatrixprojection",ring_SetMatrixProjection);
+ ring_vm_funcregister("setmatrixmodelview",ring_SetMatrixModelview);
}
