Carna  Version 3.3.2
Public Member Functions | Public Attributes | List of all members
Carna::base::BlendFunction Class Reference

Defines how alpha blending is to be performed. More...

#include <BlendFunction.h>

Public Member Functions

 BlendFunction (int sourceFactor, int destinationFactor)
 Creates blend function with sourceFactor and destinationFactor. More...
 
bool operator== (const BlendFunction &other) const
 Tells whether this function equals other.
 

Public Attributes

int sourceFactor
 Holds the source factor.
 
int destinationFactor
 Holds the destination factor.
 

Detailed Description

Defines how alpha blending is to be performed.

Author
Leonid Kostrykin
Date
22.2.15 - 17.3.15

Definition at line 39 of file BlendFunction.h.

Constructor & Destructor Documentation

◆ BlendFunction()

Carna::base::BlendFunction::BlendFunction ( int  sourceFactor,
int  destinationFactor 
)

Creates blend function with sourceFactor and destinationFactor.

Attention
The arguments sourceFactor and destinationFactor do not accept arbitrary values. Instead, use constants like GL_ONE and GL_SRC_ALPHA.

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