SPARK  0.1.0
A general purpose game engine written in C++.
Loading...
Searching...
No Matches
spark::render::IRenderTarget::BlendState Struct Reference

Describes the blend state of a render target. More...

#include <RenderTarget.h>

Public Attributes

bool enable = false
 Specifies, if the target should be blended (default: false).
 
BlendFactor sourceColor {BlendFactor::One}
 The blend factor for the source color channels (default: BlendFactor::One).
 
BlendFactor destinationColor {BlendFactor::Zero}
 The blend factor for the destination color channels (default: BlendFactor::Zero).
 
BlendFactor sourceAlpha {BlendFactor::One}
 The blend factor for the source alpha channel (default: BlendFactor::One).
 
BlendFactor destinationAlpha {BlendFactor::Zero}
 The blend factor for the destination alpha channels (default: BlendFactor::Zero).
 
BlendOperation colorOperation {BlendOperation::Add}
 The blend operation for the color channels (default: BlendOperation::Add).
 
BlendOperation alphaOperation {BlendOperation::Add}
 The blend operation for the alpha channel (default: BlendOperation::Add).
 
WriteMask writeMask {WriteMask::R | WriteMask::G | WriteMask::B | WriteMask::A}
 The channel write mask, determining which channels are written to (default: WriteMask::R | WriteMask::G | WriteMask::B | WriteMask::A).
 

Detailed Description

Describes the blend state of a render target.