summaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index f772617..cd7316e 100644
--- a/src/core.c
+++ b/src/core.c
@@ -495,6 +495,28 @@ int lcoreClearBackground( lua_State *L ) {
}
/*
+> RL_BeginDrawing()
+
+Setup canvas ( framebuffer ) to start drawing
+*/
+int lcoreBeginDrawing( lua_State *L ) {
+ BeginDrawing();
+
+ return 1;
+}
+
+/*
+> RL_EndDrawing()
+
+End canvas drawing and swap buffers ( double buffering )
+*/
+int lcoreEndDrawing( lua_State *L ) {
+ EndDrawing();
+
+ return 1;
+}
+
+/*
> success = RL_BeginBlendMode( int mode )
Begin blending mode ( BLEND_ALPHA, BLEND_ADDITIVE, BLEND_MULTIPLIED... )