Browse Source

Camera: added setters for depth and stencil clear value.

vectorfields
Vladimír Vondruš 14 years ago
parent
commit
83ff04f0a2
  1. 21
      src/Camera.h

21
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

Loading…
Cancel
Save