Cocos2d-x  v3.10
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
BlendFunc Struct Reference

Blend Function used for textures. More...

Public Attributes

GLenum src
 source blend factor
 
var src
 source blend factor
 
local src
 source blend factor
 
GLenum dst
 destination blend factor
 

Static Public Attributes

static const BlendFunc DISABLE
 Blending disabled. More...
 
var DISABLE
 Blending disabled. More...
 
local DISABLE
 Blending disabled. More...
 
static const BlendFunc ALPHA_PREMULTIPLIED
 Blending enabled for textures with Alpha premultiplied. More...
 
var ALPHA_PREMULTIPLIED
 Blending enabled for textures with Alpha premultiplied. More...
 
local ALPHA_PREMULTIPLIED
 Blending enabled for textures with Alpha premultiplied. More...
 
static const BlendFunc ALPHA_NON_PREMULTIPLIED
 Blending enabled for textures with Alpha NON premultiplied. More...
 
var ALPHA_NON_PREMULTIPLIED
 Blending enabled for textures with Alpha NON premultiplied. More...
 
local ALPHA_NON_PREMULTIPLIED
 Blending enabled for textures with Alpha NON premultiplied. More...
 
static const BlendFunc ADDITIVE
 Enables Additive blending. More...
 
var ADDITIVE
 Enables Additive blending. More...
 
local ADDITIVE
 Enables Additive blending. More...
 

Detailed Description

Blend Function used for textures.

Member Data Documentation

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}

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


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