Cocos2d-x  v4
BlendFunc Struct Reference

Public Attributes

backend::BlendFactor src
 source blend function
 
backend::BlendFactor dst
 destination blend function
 

Static Public Attributes

static const BlendFunc DISABLE
 Blending disabled. More...
 
static const BlendFunc 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...
 
static const BlendFunc ADDITIVE
 Enables Additive blending. More...
 

Detailed Description

Blend Function used for textures.

Member Data Documentation

◆ DISABLE

const BlendFunc DISABLE
static

Blending disabled.

Uses {BlendFactor::ONE, BlendFactor::ZERO}

◆ ALPHA_PREMULTIPLIED

const BlendFunc ALPHA_PREMULTIPLIED
static

Blending enabled for textures with Alpha premultiplied.

Uses {BlendFactor::ONE, BlendFactor::ONE_MINUS_SRC_ALPHA}

◆ ALPHA_NON_PREMULTIPLIED

const BlendFunc ALPHA_NON_PREMULTIPLIED
static

Blending enabled for textures with Alpha NON premultiplied.

Uses {BlendFactor::SRC_ALPHA, BlendFactor::ONE_MINUS_SRC_ALPHA}

◆ ADDITIVE

const BlendFunc ADDITIVE
static

Enables Additive blending.

Uses {BlendFactor::SRC_ALPHA, BlendFactor::ONE}


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