Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Mapping.h
Go to the documentation of this file.
1/* Copyright (C) 2026 Wildfire Games.
2 * This file is part of 0 A.D.
3 *
4 * 0 A.D. is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * 0 A.D. is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef INCLUDED_RENDERER_BACKEND_GL_MAPPING
19#define INCLUDED_RENDERER_BACKEND_GL_MAPPING
20
21#include "lib/config2.h"
22
23#if CONFIG2_GLES
25#else
26#include <glad/gl.h>
27#endif
28
29namespace Renderer::Backend { enum class BlendFactor; }
30namespace Renderer::Backend { enum class BlendOp; }
31namespace Renderer::Backend { enum class CompareOp; }
32namespace Renderer::Backend { enum class StencilOp; }
33
34namespace Renderer
35{
36
37namespace Backend
38{
39
40namespace GL
41{
42
43namespace Mapping
44{
45
46GLenum FromCompareOp(const CompareOp compareOp);
47
48GLenum FromStencilOp(const StencilOp stencilOp);
49
50GLenum FromBlendFactor(const BlendFactor blendFactor);
51
52GLenum FromBlendOp(const BlendOp blendOp);
53
54} // namespace Mapping
55
56} // namespace GL
57
58} // namespace Backend
59
60} // namespace Renderer
61
62#endif // INCLUDED_RENDERER_BACKEND_GL_MAPPING
GLenum FromBlendFactor(const BlendFactor blendFactor)
Definition: Mapping.cpp:77
GLenum FromStencilOp(const StencilOp stencilOp)
Definition: Mapping.cpp:58
GLenum FromCompareOp(const CompareOp compareOp)
Definition: Mapping.cpp:39
GLenum FromBlendOp(const BlendOp blendOp)
Definition: Mapping.cpp:110
Definition: Canvas2D.h:30
CompareOp
Definition: CompareOp.h:30
StencilOp
Definition: PipelineState.h:37
BlendOp
Definition: PipelineState.h:106
BlendFactor
Definition: PipelineState.h:83
Backend
Definition: Backend.h:28
Definition: Canvas2D.h:30