From 30ae308c9b26b18096f3f993f4b6ad50ea6bfd76 Mon Sep 17 00:00:00 2001 From: jussi Date: Tue, 22 Feb 2022 19:09:57 +0200 Subject: Documentation, heightmap example and custom begin and end draw. --- src/core.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/core.c') diff --git a/src/core.c b/src/core.c index f772617..cd7316e 100644 --- a/src/core.c +++ b/src/core.c @@ -494,6 +494,28 @@ int lcoreClearBackground( lua_State *L ) { return 1; } +/* +> 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 ) -- cgit v1.2.3