|
|
|
@ -78,6 +78,27 @@ class MAGNUM_EXPORT Camera: public Object { |
|
|
|
glClearColor(color.r(), color.g(), color.b(), color.a()); |
|
|
|
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 |
|
|
|
* @brief Constructor |
|
|
|
* @param parent Parent object |
|
|
|
* @param parent Parent object |
|
|
|
|