Gamp v0.0.7-54-gccdc599
Gamp: Graphics, Audio, Multimedia and Processing
Loading...
Searching...
No Matches
RenderNames.hpp
Go to the documentation of this file.
1/*
2 * Author: Sven Gothel <sgothel@jausoft.com> (C++, Java) and Rami Santina (Java)
3 * Copyright Gothel Software e.K. and the authors
4 *
5 * SPDX-License-Identifier: MIT
6 *
7 * This Source Code Form is subject to the terms of the MIT License
8 * If a copy of the MIT was not distributed with this file,
9 * you can obtain one at https://opensource.org/license/mit/.
10 */
11#ifndef JAU_GAMP_GRAPH_GL_RENDERNAMES_HPP_
12#define JAU_GAMP_GRAPH_GL_RENDERNAMES_HPP_
13
14#include <string_view>
15
16namespace gamp::graph::gl {
17
18 /** \addtogroup Gamp_Graph
19 *
20 * @{
21 */
22
24 public:
25 constexpr static std::string_view gcu_PMVMatrix = "gcu_PMVMatrix"; // mat4 gcu_PMVMatrix[4]; // P, Mv, Mvi and Mvit
26 constexpr static std::string_view gcu_StaticColor = "gcu_StaticColor"; // vec4
27 constexpr static std::string_view gcu_Weight = "gcu_Weight"; // float
28
29 // USE_COLOR_TEXTURE:
30 constexpr static std::string_view gcu_ColorTexUnit = "gcu_ColorTexUnit"; // FIXME
31 constexpr static std::string_view gcu_ColorTexBBox = "gcu_ColorTexBBox"; // vec2 gcu_ColorTexBBox[3]; // box-min[2], box-max[2] and tex-size[2]
32 constexpr static std::string_view gcu_ColorTexClearCol = "gcu_ColorTexClearCol"; // vec4: clear color for gcu_ColorTexBBox clipping
33 // USE_FRUSTUM_CLIPPING:
34 constexpr static std::string_view gcu_ClipFrustum = "gcu_ClipFrustum"; // vec4: L, R, B, T, N, F each {n.x, n.y, n.z, d}
35 // USE_LIGHT0:
36 constexpr static std::string_view gcu_LightPos = "gcu_LightPos"; // vec3
37
38 // 2nd pass:
39 constexpr static std::string_view gcu_PMVMatrix02 = "gcu_PMVMatrix02"; // mat4 gcu_PMVMatrix[4]; // P, Mv, Mvi, Mvit ???
40 constexpr static std::string_view gcu_FboTexUnit = "gcu_FboTexUnit"; // sampler2D gcu_FboTexUnit
41 constexpr static std::string_view gcu_FboTexSize = "gcu_FboTexSize"; // vec2
42
43 /// The vertex attribute
44 constexpr static std::string_view gca_Vertex = "gca_Vertex"; // vec4
45
46 /**
47 * Curve texture coord attribute
48 *
49 * CDTriangulator2D.extractBoundaryTriangles(..):
50 * AA line (exp) : z > 0
51 * line : x == 0, y == 0
52 * hole or holeLike: 0 > y
53 * !hole : 0 < y
54 *
55 * 0 == gca_CurveParam.x : vertex-0 of triangle
56 * 0.5 == gca_CurveParam.x : vertex-1 of triangle
57 * 1 == gca_CurveParam.x : vertex-2 of triangle
58 */
59 constexpr static std::string_view gca_CurveParam = "gca_CurveParam"; // vec3
60
61 /// Color attribute (optional), USE_COLOR_CHANNEL:
62 constexpr static std::string_view gca_Color = "gca_Color"; // vec4
63
64 /// Normal attribute (optional), USE_NORMAL_CHANNEL:
65 constexpr static std::string_view gca_Normal = "gca_Normal"; // vec3
66
67 /// 2nd pass FBO vertex attribute (optional)
68 constexpr static std::string_view gca_FboVertex = "gca_FboVertex"; // vec4
69
70 /// 2nd pass FBO texture coordinate attribute (optional)
71 constexpr static std::string_view gca_FboTexCoord = "gca_FboTexCoord"; // vec2
72 };
73
74 /**@}*/
75
76} // namespace gamp::graph::gl
77
78#endif // JAU_GAMP_GRAPH_GL_RENDERNAMES_HPP_
79
static constexpr std::string_view gca_FboTexCoord
2nd pass FBO texture coordinate attribute (optional)
static constexpr std::string_view gcu_FboTexSize
static constexpr std::string_view gcu_ClipFrustum
static constexpr std::string_view gca_FboVertex
2nd pass FBO vertex attribute (optional)
static constexpr std::string_view gcu_FboTexUnit
static constexpr std::string_view gcu_PMVMatrix
static constexpr std::string_view gcu_StaticColor
static constexpr std::string_view gca_Color
Color attribute (optional), USE_COLOR_CHANNEL:
static constexpr std::string_view gca_Vertex
The vertex attribute.
static constexpr std::string_view gcu_Weight
static constexpr std::string_view gcu_ColorTexUnit
static constexpr std::string_view gca_CurveParam
Curve texture coord attribute.
static constexpr std::string_view gcu_LightPos
static constexpr std::string_view gca_Normal
Normal attribute (optional), USE_NORMAL_CHANNEL:
static constexpr std::string_view gcu_ColorTexClearCol
static constexpr std::string_view gcu_PMVMatrix02
static constexpr std::string_view gcu_ColorTexBBox