Cinder  0.9.1
Public Member Functions | List of all members
cinder::gl::ScopedBlend Struct Reference

#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 ()
 

Detailed Description

Controls the current blend mode for the current scope.

Constructor & Destructor Documentation

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 ( )

The documentation for this struct was generated from the following files: