cocos2d-x  3.3
 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
var operator== ( var a)
local operator== ( local a)
bool operator!= (const BlendFunc &a) const
var operator!= ( var a)
local operator!= ( local a)
bool operator< (const BlendFunc &a) const
var operator< ( var a)
local operator< ( local a)

Public Attributes

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

Static Public Attributes

static const BlendFunc DISABLE
 Blending disabled. Uses {GL_ONE, GL_ZERO}. More...
 
var DISABLE
 Blending disabled. Uses {GL_ONE, GL_ZERO}. More...
 
local 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...
 
var ALPHA_PREMULTIPLIED
 Blending enabled for textures with Alpha premultiplied. Uses {GL_ONE, GL_ONE_MINUS_SRC_ALPHA}. More...
 
local 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!= ( var  a)
inline
bool operator!= ( local  a)
inline
bool operator< ( const BlendFunc a) const
inline
bool operator< ( var  a)
inline
bool operator< ( local  a)
inline
bool operator== ( const BlendFunc a) const
inline
bool operator== ( var  a)
inline
bool operator== ( local  a)
inline

Member Data Documentation

const BlendFunc ADDITIVE
static

Enables Additive blending. Uses {GL_SRC_ALPHA, GL_ONE}.

var ADDITIVE
static

Enables Additive blending. Uses {GL_SRC_ALPHA, GL_ONE}.

local 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}.

var ALPHA_NON_PREMULTIPLIED
static

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

local 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}.

var ALPHA_PREMULTIPLIED
static

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

local 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}.

var DISABLE
static

Blending disabled. Uses {GL_ONE, GL_ZERO}.

local DISABLE
static

Blending disabled. Uses {GL_ONE, GL_ZERO}.

GLenum dst

destination blend function

var dst

destination blend function

local dst

destination blend function

GLenum src

source blend function

var src

source blend function

local src

source blend function


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