Browse Source

Using Set for Framebuffer::BlitMask.

pull/279/head
Vladimír Vondruš 14 years ago
parent
commit
65289db3d5
  1. 26
      src/Framebuffer.h

26
src/Framebuffer.h

@ -23,6 +23,7 @@
#include "CubeMapTexture.h" #include "CubeMapTexture.h"
#include "Image.h" #include "Image.h"
#include "Renderbuffer.h" #include "Renderbuffer.h"
#include "Set.h"
namespace Magnum { namespace Magnum {
@ -125,27 +126,16 @@ class MAGNUM_EXPORT Framebuffer {
* *
* Specifies which data are copied when performing blit operation * Specifies which data are copied when performing blit operation
* using blit(). * using blit().
* * @see BlitMask
* @todo Use class Set
*/ */
enum class BlitMask: GLbitfield { enum class Blit: GLbitfield {
Color = GL_COLOR_BUFFER_BIT, /**< Color only. */ Color = GL_COLOR_BUFFER_BIT, /**< Color */
Depth = GL_DEPTH_BUFFER_BIT, /**< Depth value only. */ Depth = GL_DEPTH_BUFFER_BIT, /**< Depth value */
Stencil = GL_STENCIL_BUFFER_BIT, /**< Stencil value only. */ Stencil = GL_STENCIL_BUFFER_BIT /**< Stencil value */
/** 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
}; };
typedef Set<Blit, GLbitfield> BlitMask; /**< @brief Output mask for blitting */
/** /**
* @brief Bind default framebuffer to given target * @brief Bind default framebuffer to given target
* @param target %Target * @param target %Target

Loading…
Cancel
Save