Antkeeper
0.0.1
src
engine
gl
blend-factor.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2023 Christopher J. Howard
3
*
4
* This file is part of Antkeeper source code.
5
*
6
* Antkeeper source code is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* Antkeeper source code is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with Antkeeper source code. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef ANTKEEPER_GL_BLEND_FACTOR_HPP
21
#define ANTKEEPER_GL_BLEND_FACTOR_HPP
22
23
#include <cstdint>
24
25
namespace
gl
{
26
28
enum class
blend_factor
: std::uint8_t
29
{
30
zero
,
31
one
,
32
src_color
,
33
one_minus_src_color
,
34
dst_color
,
35
one_minus_dst_color
,
36
src_alpha
,
37
one_minus_src_alpha
,
38
dst_alpha
,
39
one_minus_dst_alpha
,
40
constant_color
,
41
one_minus_constant_color
,
42
constant_alpha
,
43
one_minus_constant_alpha
,
44
src_alpha_saturate
,
45
src1_color
,
46
one_minus_src1_color
,
47
src1_alpha
,
48
one_minus_src1_alpha
49
};
50
51
}
// namespace gl
52
53
#endif
// ANTKEEPER_GL_BLEND_FACTOR_HPP
gl
Graphics library interface.
Definition:
window.hpp:28
gl::blend_factor
blend_factor
Source and destination color and alpha blending factors.
Definition:
blend-factor.hpp:29
gl::blend_factor::src1_alpha
@ src1_alpha
gl::blend_factor::one_minus_src1_alpha
@ one_minus_src1_alpha
gl::blend_factor::one_minus_dst_color
@ one_minus_dst_color
gl::blend_factor::src_color
@ src_color
gl::blend_factor::src_alpha_saturate
@ src_alpha_saturate
gl::blend_factor::one_minus_constant_color
@ one_minus_constant_color
gl::blend_factor::one_minus_dst_alpha
@ one_minus_dst_alpha
gl::blend_factor::constant_alpha
@ constant_alpha
gl::blend_factor::one_minus_src_alpha
@ one_minus_src_alpha
gl::blend_factor::src1_color
@ src1_color
gl::blend_factor::one_minus_src_color
@ one_minus_src_color
gl::blend_factor::dst_alpha
@ dst_alpha
gl::blend_factor::zero
@ zero
gl::blend_factor::one_minus_src1_color
@ one_minus_src1_color
gl::blend_factor::one_minus_constant_alpha
@ one_minus_constant_alpha
gl::blend_factor::dst_color
@ dst_color
gl::blend_factor::constant_color
@ constant_color
gl::blend_factor::one
@ one
gl::blend_factor::src_alpha
@ src_alpha