Antkeeper  0.0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pipeline-rasterization-state.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_PIPELINE_RASTERIZATION_STATE_HPP
21 #define ANTKEEPER_GL_PIPELINE_RASTERIZATION_STATE_HPP
22 
23 #include <engine/gl/front-face.hpp>
24 #include <engine/gl/cull-mode.hpp>
25 #include <engine/gl/fill-mode.hpp>
27 #include <cstdlib>
28 
29 namespace gl {
30 
33 {
36 
39 
42 
45 
47  bool depth_bias_enabled{false};
48 
51 
54 
56  bool depth_clamp_enabled{false};
57 
59  bool scissor_test_enabled{false};
60 
63 
65  float point_size{1.0f};
66 
68  float line_width{1.0f};
69 };
70 
71 } // namespace gl
72 
73 #endif // ANTKEEPER_GL_PIPELINE_RASTERIZATION_STATE_HPP
Graphics library interface.
Definition: window.hpp:28
cull_mode
Triangle culling mode.
Definition: cull-mode.hpp:29
@ back
Back-facing triangles are discarded.
front_face
Polygon front-facing orientation.
Definition: front-face.hpp:29
@ counter_clockwise
Triangle with positive area is considered front-facing.
provoking_vertex_mode
Vertex to be used as the source of data for flat-shaded varyings.
@ last
Provoking vertex is the last non-adjacency vertex.
fill_mode
Polygon rasterization mode.
Definition: fill-mode.hpp:29
@ fill
Polygons are filled.
bool scissor_test_enabled
true if scissor testing should be enabled, false otherwise.
bool rasterizer_discard_enabled
true if rasterizer discard should be enabled, false otherwise.
float depth_bias_constant_factor
Depth bias constant factor.
float point_size
Diameter of rasterized points.
bool depth_clamp_enabled
true if depth clamp should be enabled, false otherwise.
bool depth_bias_enabled
true if depth bias should be enabled, false otherwise.
float line_width
Width of rasterized line segments.
float depth_bias_slope_factor
Depth bias slope factor.