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