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. --- API.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'API.md') diff --git a/API.md b/API.md index e9805ba..297e9d8 100644 --- a/API.md +++ b/API.md @@ -20,7 +20,8 @@ This function will be called every frame during execution. It will get time dura > function draw() This function will be called every frame after process and it should have all rendering related functions. -Note: Engine will call Raylib functions 'BeginDrawing()' before this function call and 'EndDrawing()' after it +Note: Engine will call Raylib functions 'BeginDrawing()' before this function call and 'EndDrawing()' after it. +You can still use RL_BeginDrawing() and RL_EndDrawing() manually from anywhere. --- @@ -698,6 +699,18 @@ Set background color ( framebuffer clear color ) --- +> RL_BeginDrawing() + +Setup canvas ( framebuffer ) to start drawing + +--- + +> RL_EndDrawing() + +End canvas drawing and swap buffers ( double buffering ) + +--- + > success = RL_BeginBlendMode( int mode ) Begin blending mode ( BLEND_ALPHA, BLEND_ADDITIVE, BLEND_MULTIPLIED... ) -- cgit v1.2.3