From 83ff04f0a2336b98020eedcf33574a4e272c9f3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 30 May 2012 14:29:13 +0200 Subject: [PATCH] Camera: added setters for depth and stencil clear value. --- src/Camera.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/Camera.h b/src/Camera.h index 167f85c57..41ad8685d 100644 --- a/src/Camera.h +++ b/src/Camera.h @@ -78,6 +78,27 @@ class MAGNUM_EXPORT Camera: public Object { glClearColor(color.r(), color.g(), color.b(), color.a()); } + /** + * @brief Set clear depth + * + * Initial value is `1.0`. + */ + inline static void setClearDepth(GLdouble depth) { glClearDepth(depth); } + + /** + * @overload + * + * @requires_gl41 Extension @extension{ARB,ES2_compatibility} + */ + inline static void setClearDepth(GLfloat depth) { glClearDepthf(depth); } + + /** + * @brief Set clear stencil + * + * Initial value is `0`. + */ + inline static void setClearStencil(GLint stencil) { glClearStencil(stencil); } + /** * @brief Constructor * @param parent Parent object