Dali 3D User Interface Engine
Functions | Variables
anonymous_namespace{blending-options.cpp} Namespace Reference

Functions

void StoreBlendingFactor (unsigned int &options, BlendingFactor::Type factor, int bitShift)
 Utility to store one of the BlendFunc values. More...
 
void StoreBlendingEquation (unsigned int &options, BlendingEquation::Type factor, int bitShift)
 Utility to store one of the BlendEquation values. More...
 
BlendingFactor::Type RetrieveBlendingFactor (unsigned int options, int mask, int bitShift)
 Utility to retrieve one of the BlendFunc values. More...
 
BlendingEquation::Type RetrieveBlendingEquation (unsigned int options, int mask, int bitShift)
 Utility to retrieve one of the BlendEquation values. More...
 

Variables

const int MASK_SRC_FACTOR_RGB = 0x0000000F
 
const int MASK_SRC_FACTOR_ALPHA = 0x000000F0
 
const int MASK_DEST_FACTOR_RGB = 0x00000F00
 
const int MASK_DEST_FACTOR_ALPHA = 0x0000F000
 
const int MASK_EQUATION_RGB = 0x000F0000
 
const int MASK_EQUATION_ALPHA = 0x00F00000
 
const int SHIFT_TO_SRC_FACTOR_RGB = 0
 
const int SHIFT_TO_SRC_FACTOR_ALPHA = 4
 
const int SHIFT_TO_DEST_FACTOR_RGB = 8
 
const int SHIFT_TO_DEST_FACTOR_ALPHA = 12
 
const int SHIFT_TO_EQUATION_RGB = 16
 
const int SHIFT_TO_EQUATION_ALPHA = 20
 
static unsigned int CLEAR_BLEND_FUNC_MASK = 0xFFFF0000
 
static unsigned int CLEAR_BLEND_EQUATION_MASK = 0xFF00FFFF
 
const unsigned int BLENDING_FACTOR_COUNT = 15
 
const unsigned int BLENDING_EQUATION_COUNT = 3
 
BlendingFactor::Type BLENDING_FACTORS [BLENDING_FACTOR_COUNT]
 
BlendingEquation::Type BLENDING_EQUATIONS [BLENDING_EQUATION_COUNT]
 

Function Documentation

BlendingEquation::Type anonymous_namespace{blending-options.cpp}::RetrieveBlendingEquation ( unsigned int  options,
int  mask,
int  bitShift 
)

Utility to retrieve one of the BlendEquation values.

Parameters
[in]optionsA bitmask of blending values.
[in]maskThe used to mask unwanted values.
[in]bitshiftUsed to shift to the correct part of options.
Returns
The blending equation.

Definition at line 188 of file blending-options.cpp.

References BLENDING_EQUATION_COUNT, BLENDING_EQUATIONS, and DALI_ASSERT_DEBUG.

Referenced by Dali::Internal::BlendingOptions::GetBlendEquationAlpha(), and Dali::Internal::BlendingOptions::GetBlendEquationRgb().

Here is the caller graph for this function:

BlendingFactor::Type anonymous_namespace{blending-options.cpp}::RetrieveBlendingFactor ( unsigned int  options,
int  mask,
int  bitShift 
)

Utility to retrieve one of the BlendFunc values.

Parameters
[in]optionsA bitmask of blending values.
[in]maskThe used to mask unwanted values.
[in]bitshiftUsed to shift to the correct part of options.
Returns
The blending factor.

Definition at line 171 of file blending-options.cpp.

References BLENDING_FACTOR_COUNT, BLENDING_FACTORS, and DALI_ASSERT_DEBUG.

Referenced by Dali::Internal::BlendingOptions::GetBlendDestFactorAlpha(), Dali::Internal::BlendingOptions::GetBlendDestFactorRgb(), Dali::Internal::BlendingOptions::GetBlendSrcFactorAlpha(), and Dali::Internal::BlendingOptions::GetBlendSrcFactorRgb().

Here is the caller graph for this function:

void anonymous_namespace{blending-options.cpp}::StoreBlendingEquation ( unsigned int &  options,
BlendingEquation::Type  factor,
int  bitShift 
)

Utility to store one of the BlendEquation values.

Parameters
[out]optionsA bitmask used to store the BlendEquation values.
[in]factorThe BlendEquation value.
[in]bitshiftUsed to shift to the correct part of options.

Definition at line 121 of file blending-options.cpp.

References Dali::BlendingEquation::ADD, Dali::BlendingEquation::REVERSE_SUBTRACT, and Dali::BlendingEquation::SUBTRACT.

Referenced by Dali::Internal::BlendingOptions::SetBlendEquation().

Here is the caller graph for this function:

void anonymous_namespace{blending-options.cpp}::StoreBlendingFactor ( unsigned int &  options,
BlendingFactor::Type  factor,
int  bitShift 
)

Variable Documentation

const unsigned int anonymous_namespace{blending-options.cpp}::BLENDING_EQUATION_COUNT = 3

Definition at line 140 of file blending-options.cpp.

Referenced by RetrieveBlendingEquation().

BlendingEquation::Type anonymous_namespace{blending-options.cpp}::BLENDING_EQUATIONS[BLENDING_EQUATION_COUNT]
const unsigned int anonymous_namespace{blending-options.cpp}::BLENDING_FACTOR_COUNT = 15

Definition at line 139 of file blending-options.cpp.

Referenced by RetrieveBlendingFactor().

BlendingFactor::Type anonymous_namespace{blending-options.cpp}::BLENDING_FACTORS[BLENDING_FACTOR_COUNT]
unsigned int anonymous_namespace{blending-options.cpp}::CLEAR_BLEND_EQUATION_MASK = 0xFF00FFFF
static
unsigned int anonymous_namespace{blending-options.cpp}::CLEAR_BLEND_FUNC_MASK = 0xFFFF0000
static

Definition at line 40 of file blending-options.cpp.

Referenced by Dali::Internal::BlendingOptions::SetBlendFunc().

const int anonymous_namespace{blending-options.cpp}::MASK_DEST_FACTOR_ALPHA = 0x0000F000
const int anonymous_namespace{blending-options.cpp}::MASK_DEST_FACTOR_RGB = 0x00000F00
const int anonymous_namespace{blending-options.cpp}::MASK_EQUATION_ALPHA = 0x00F00000
const int anonymous_namespace{blending-options.cpp}::MASK_EQUATION_RGB = 0x000F0000
const int anonymous_namespace{blending-options.cpp}::MASK_SRC_FACTOR_ALPHA = 0x000000F0
const int anonymous_namespace{blending-options.cpp}::MASK_SRC_FACTOR_RGB = 0x0000000F
const int anonymous_namespace{blending-options.cpp}::SHIFT_TO_DEST_FACTOR_ALPHA = 12
const int anonymous_namespace{blending-options.cpp}::SHIFT_TO_DEST_FACTOR_RGB = 8
const int anonymous_namespace{blending-options.cpp}::SHIFT_TO_EQUATION_ALPHA = 20
const int anonymous_namespace{blending-options.cpp}::SHIFT_TO_EQUATION_RGB = 16
const int anonymous_namespace{blending-options.cpp}::SHIFT_TO_SRC_FACTOR_ALPHA = 4
const int anonymous_namespace{blending-options.cpp}::SHIFT_TO_SRC_FACTOR_RGB = 0
Dali Docs Home
Read more about Dali