From dbec3a5daf6fd012adc4d9690ef1dccc65969e04 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kai=20Wasserb=C3=A4ch?= Date: Tue, 23 Aug 2011 10:48:58 +0200 Subject: [PATCH] Document the return type coding style. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit As per discussion at [0] methods shouldn't use OpenGL return types, if they're not part of the GL API. [0] Signed-off-by: Kai Wasserbäch Signed-off-by: Ian Romanick --- docs/devinfo.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/devinfo.html b/docs/devinfo.html index c0966480ab7..d9e82e29d0b 100644 --- a/docs/devinfo.html +++ b/docs/devinfo.html @@ -137,6 +137,16 @@ Function name examples: _mesa_foo_bar() - an internal non-static Mesa function +

+Places that are not directly visible to the GL API should prefer the use +of bool, true, and +false over GLboolean, GL_TRUE, and +GL_FALSE. In C code, this may mean that +#include <stdbool.h> need to be added. The +try_emit_* methods in src/mesa/program/ir_to_mesa.cpp and +src/mesa/state_tracker/st_glsl_to_tgsi.cpp can serve as an example. +

+

Making a New Mesa Release

-- 2.30.2