![]() |
Cinder
0.9.1
|
#include <scoped.h>
Inherits cinder::Noncopyable.
Inherited by cinder::gl::ScopedBlendAdditive, cinder::gl::ScopedBlendAlpha [private]
, and cinder::gl::ScopedBlendPremult [private]
.
Public Member Functions | |
ScopedBlend (GLboolean enable) | |
ScopedBlend (GLenum sfactor, GLenum dfactor) | |
ScopedBlend (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) | |
~ScopedBlend () | |
Controls the current blend mode for the current scope.
cinder::gl::ScopedBlend::ScopedBlend | ( | GLboolean | enable | ) |
Enables or disables blending (GL_BLEND
) state.
cinder::gl::ScopedBlend::ScopedBlend | ( | GLenum | sfactor, |
GLenum | dfactor | ||
) |
Parallels glBlendFunc(), and implicitly enables blending.
Parallels glBlendFunc(), implicitly enables blending.
cinder::gl::ScopedBlend::ScopedBlend | ( | GLenum | srcRGB, |
GLenum | dstRGB, | ||
GLenum | srcAlpha, | ||
GLenum | dstAlpha | ||
) |
Parallels glBlendFuncSeparate(), and implicitly enables blending.
Parallels glBlendFuncSeparate(), implicitly enables blending.
cinder::gl::ScopedBlend::~ScopedBlend | ( | ) |