Rest of shapes draw functions.

This commit is contained in:
jussi
2022-06-12 23:20:10 +03:00
parent 9dd3fa10ce
commit 4cb361733e
13 changed files with 1038 additions and 18 deletions

View File

@@ -35,6 +35,7 @@ int lcoreSetClipboardText( lua_State *L );
int lcoreGetClipboardText( lua_State *L );
/* Timing. */
int lcoreSetTargetFPS( lua_State *L );
int lcoreGetFPS( lua_State *L );
int lcoreGetFrameTime( lua_State *L );
int lcoreGetTime( lua_State *L );
/* Misc. */
@@ -117,7 +118,7 @@ int lcoreGetCamera3DUp( lua_State *L );
int lcoreGetCamera3DFovy( lua_State *L );
int lcoreGetCamera3DProjection( lua_State *L );
int lcoreUpdateCamera3D( lua_State *L );
int lcoreSetCamera3DMode( lua_State *L );
int lcoreSetCameraMode( lua_State *L );
int lcoreSetCameraPanControl( lua_State *L );
int lcoreSetCameraAltControl( lua_State *L );
int lcoreSetCameraSmoothZoomControl( lua_State *L );

View File

@@ -1,14 +1,38 @@
#pragma once
/* Drawing. */
int lshapesSetShapesTexture( lua_State *L );
int lshapesDrawPixel( lua_State *L );
int lshapesDrawLine( lua_State *L );
int lshapesDrawLineBezier( lua_State *L );
int lshapesDrawLineBezierQuad( lua_State *L );
int lshapesDrawLineBezierCubic( lua_State *L );
int lshapesDrawLineStrip( lua_State *L );
int lshapesDrawCircle( lua_State *L );
int lshapesDrawCircleSector( lua_State *L );
int lshapesDrawCircleSectorLines( lua_State *L );
int lshapesDrawCircleGradient( lua_State *L );
int lshapesDrawCircleLines( lua_State *L );
int lshapesDrawEllipse( lua_State *L );
int lshapesDrawEllipseLines( lua_State *L );
int lshapesDrawRing( lua_State *L );
int lshapesDrawRingLines( lua_State *L );
int lshapesDrawRectangle( lua_State *L );
int lshapesDrawRectanglePro( lua_State *L );
int lshapesDrawRectangleGradientV( lua_State *L );
int lshapesDrawRectangleGradientH( lua_State *L );
int lshapesDrawRectangleGradientEx( lua_State *L );
int lshapesDrawRectangleLines( lua_State *L );
int lshapesDrawRectangleLinesEx( lua_State *L );
int lshapesDrawRectangleRounded( lua_State *L );
int lshapesDrawRectangleRoundedLines( lua_State *L );
int lshapesDrawTriangle( lua_State *L );
int lshapesDrawTriangleLines( lua_State *L );
int lshapesDrawTriangleFan( lua_State *L );
int lshapesDrawTriangleStrip( lua_State *L );
int lshapesDrawPoly( lua_State *L );
int lshapesDrawPolyLines( lua_State *L );
int lshapesDrawPolyLinesEx( lua_State *L );
/* Collision. */
int lshapesCheckCollisionRecs( lua_State *L );
int lshapesCheckCollisionCircles( lua_State *L );