Cocos2d-x  4.0.0
Public Attributes | Static Public Attributes | List of all members
BlendFunc Struct Reference

Blend Function used for textures. More...

Public Attributes

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

Static Public Attributes

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

Detailed Description

Blend Function used for textures.

Member Data Documentation

const BlendFunc DISABLE
static

Blending disabled.

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

const BlendFunc ALPHA_PREMULTIPLIED
static

Blending enabled for textures with Alpha premultiplied.

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

const BlendFunc ALPHA_NON_PREMULTIPLIED
static

Blending enabled for textures with Alpha NON premultiplied.

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

const BlendFunc ADDITIVE
static

Enables Additive blending.

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


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