cocos2d-x  3.0-beta2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BlendFunc Struct Reference

Blend Function used for textures. More...

#include <ccTypes.h>

Public Member Functions

bool operator== (const BlendFunc &a) const
bool operator< (const BlendFunc &a) const

Public Attributes

GLenum src
 source blend function More...
 
GLenum dst
 destination blend function More...
 

Static Public Attributes

static const BlendFunc DISABLE
 Blending disabled. Uses {GL_ONE, GL_ZERO}. More...
 
static const BlendFunc ALPHA_PREMULTIPLIED
 Blending enabled for textures with Alpha premultiplied. Uses {GL_ONE, GL_ONE_MINUS_SRC_ALPHA}. More...
 
static const BlendFunc ALPHA_NON_PREMULTIPLIED
 Blending enabled for textures with Alpha NON premultiplied. Uses {GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA}. More...
 
static const BlendFunc ADDITIVE
 Enables Additive blending. Uses {GL_SRC_ALPHA, GL_ONE}. More...
 

Detailed Description

Blend Function used for textures.

Member Function Documentation

bool operator< ( const BlendFunc a) const
inline
bool operator== ( const BlendFunc a) const
inline

Member Data Documentation

const BlendFunc ADDITIVE
static

Enables Additive blending. Uses {GL_SRC_ALPHA, GL_ONE}.

const BlendFunc
ALPHA_NON_PREMULTIPLIED
static

Blending enabled for textures with Alpha NON premultiplied. Uses {GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA}.

const BlendFunc ALPHA_PREMULTIPLIED
static

Blending enabled for textures with Alpha premultiplied. Uses {GL_ONE, GL_ONE_MINUS_SRC_ALPHA}.

const BlendFunc DISABLE
static

Blending disabled. Uses {GL_ONE, GL_ZERO}.

GLenum dst

destination blend function

GLenum src

source blend function


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