Cumulia Illustrator Rendering Engine v2.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
cil::Blend Class Reference

The Blend class inherits from the State class, describing the blending operation during rendering transparent objects. More...

#include <state.h>

Inheritance diagram for cil::Blend:
cil::State cil::Object

Public Types

enum class  Function {
  ZERO , ONE , SRC_COLOR , ONE_MINUS_SRC_COLOR ,
  DST_COLOR , ONE_MINUS_DST_COLOR , SRC_ALPHA , ONE_MINUS_SRC_ALPHA ,
  DST_ALPHA , ONE_MINUS_DST_ALPHA , CONSTANT_COLOR , ONE_MINUS_CONSTANT_COLOR ,
  CONSTANT_ALPHA , ONE_MINUS_CONSTANT_ALPHA , SRC_ALPHA_SATURATE
}
 The factors in this enumeration specify how the source and destination color values are combined during rendring. More...
 
enum class  Equation {
  FUNC_ADD , FUNC_SUBTRACT , FUNC_REVERSE_SUBTRACT , MIN ,
  MAX
}
 This enumeration defines different operations used in the blend equation. These operations determine how the source and destination factors are combined. More...
 

Public Member Functions

 Blend (bool enabled=false, Blend::Function srcFunc=Blend::Function::SRC_ALPHA, Blend::Function dstFunc=Blend::Function::ONE_MINUS_SRC_ALPHA, Blend::Equation equation=Blend::Equation::FUNC_ADD)
 
- Public Member Functions inherited from cil::State
 State ()
 
const std::string & className () const
 
- Public Member Functions inherited from cil::Object
 Object ()
 
virtual ~Object ()
 

Public Attributes

bool enabled
 This member allows you to enable/diable blending.
 
Function srcFunc
 
Function dstFunc
 
Equation equation
 

Additional Inherited Members

- Protected Attributes inherited from cil::State
std::string m_className
 

Detailed Description

The Blend class inherits from the State class, describing the blending operation during rendering transparent objects.

Member Enumeration Documentation

◆ Equation

enum class cil::Blend::Equation
strong

This enumeration defines different operations used in the blend equation. These operations determine how the source and destination factors are combined.

Enumerator
FUNC_ADD 
FUNC_SUBTRACT 
FUNC_REVERSE_SUBTRACT 
MIN 
MAX 

◆ Function

enum class cil::Blend::Function
strong

The factors in this enumeration specify how the source and destination color values are combined during rendring.

Enumerator
ZERO 
ONE 
SRC_COLOR 
ONE_MINUS_SRC_COLOR 
DST_COLOR 
ONE_MINUS_DST_COLOR 
SRC_ALPHA 
ONE_MINUS_SRC_ALPHA 
DST_ALPHA 
ONE_MINUS_DST_ALPHA 
CONSTANT_COLOR 
ONE_MINUS_CONSTANT_COLOR 
CONSTANT_ALPHA 
ONE_MINUS_CONSTANT_ALPHA 
SRC_ALPHA_SATURATE 

Constructor & Destructor Documentation

◆ Blend()

Member Data Documentation

◆ dstFunc

Function cil::Blend::dstFunc

◆ enabled

bool cil::Blend::enabled

This member allows you to enable/diable blending.

◆ equation

Equation cil::Blend::equation

◆ srcFunc

Function cil::Blend::srcFunc