cgv
Loading...
Searching...
No Matches
cgv::render::context::BlendState Struct Reference

Represents a blend state used to configure fragment blending. More...

#include <context.h>

Public Attributes

bool enabled = false
 whether blending is enabled
 
BlendFunction src_color = BF_ZERO
 the source color (rgb) factor
 
BlendFunction dst_color = BF_ZERO
 the destination color (rgb) factor
 
BlendFunction src_alpha = BF_ZERO
 the source alpha factor
 
BlendFunction dst_alpha = BF_ZERO
 the destination alpha factor
 

Detailed Description

Represents a blend state used to configure fragment blending.

Definition at line 645 of file context.h.

Member Data Documentation

◆ dst_alpha

BlendFunction cgv::render::context::BlendState::dst_alpha = BF_ZERO

◆ dst_color

BlendFunction cgv::render::context::BlendState::dst_color = BF_ZERO

◆ enabled

bool cgv::render::context::BlendState::enabled = false

whether blending is enabled

Definition at line 647 of file context.h.

Referenced by cgv::render::gl::gl_context::set_blend_state().

◆ src_alpha

BlendFunction cgv::render::context::BlendState::src_alpha = BF_ZERO

◆ src_color

BlendFunction cgv::render::context::BlendState::src_color = BF_ZERO

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