From 97aacdcdcf4f294102889b7ec2c289c7ae315a8f Mon Sep 17 00:00:00 2001 From: Robin Allen Date: Mon, 21 Mar 2016 12:40:01 +0000 Subject: [PATCH] Document bgfx::touch. --- include/bgfx/bgfx.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/bgfx/bgfx.h b/include/bgfx/bgfx.h index 22537bb45..28c232d5c 100644 --- a/include/bgfx/bgfx.h +++ b/include/bgfx/bgfx.h @@ -2361,7 +2361,14 @@ namespace bgfx , uint32_t _flags = UINT32_MAX ); - /// Touch view. + /// Submit an empty primitive for rendering. Uniforms and draw state + /// will be applied but no geometry will be submitted. + /// + /// These empty draw calls will sort before ordinary draw calls. + /// + /// @param[in] _id View id. + /// @returns Number of draw calls. + /// uint32_t touch(uint8_t _id); /// Submit primitive for rendering.