From 65289db3d5aad73ec08317ddbc3f4b82086530aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 6 Jul 2012 01:48:22 +0200 Subject: [PATCH] Using Set for Framebuffer::BlitMask. --- src/Framebuffer.h | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/src/Framebuffer.h b/src/Framebuffer.h index 4ad6fa4cb..e609d322f 100644 --- a/src/Framebuffer.h +++ b/src/Framebuffer.h @@ -23,6 +23,7 @@ #include "CubeMapTexture.h" #include "Image.h" #include "Renderbuffer.h" +#include "Set.h" namespace Magnum { @@ -125,27 +126,16 @@ class MAGNUM_EXPORT Framebuffer { * * Specifies which data are copied when performing blit operation * using blit(). - * - * @todo Use class Set + * @see BlitMask */ - enum class BlitMask: GLbitfield { - Color = GL_COLOR_BUFFER_BIT, /**< Color only. */ - Depth = GL_DEPTH_BUFFER_BIT, /**< Depth value only. */ - Stencil = GL_STENCIL_BUFFER_BIT, /**< Stencil value only. */ - - /** Color and depth value. */ - ColorDepth = GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT, - - /** Color and stencil value. */ - ColorStencil = GL_COLOR_BUFFER_BIT|GL_STENCIL_BUFFER_BIT, - - /** Depth and stencil value */ - DepthStencil = GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT, - - /** Color, depth and stencil value. */ - ColorDepthStencil = GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT + enum class Blit: GLbitfield { + Color = GL_COLOR_BUFFER_BIT, /**< Color */ + Depth = GL_DEPTH_BUFFER_BIT, /**< Depth value */ + Stencil = GL_STENCIL_BUFFER_BIT /**< Stencil value */ }; + typedef Set BlitMask; /**< @brief Output mask for blitting */ + /** * @brief Bind default framebuffer to given target * @param target %Target