NAP
nap
system_modules
naprender
src
fontshader.h
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5
#pragma once
6
7
// External Includes
8
#include <shader.h>
9
10
namespace
nap
11
{
12
// Forward declares
13
class
Core;
14
15
// Video shader sampler names
16
namespace
uniform
17
{
18
namespace
font
19
{
20
inline
constexpr
const
char
*
glyphSampler
=
"glyph"
;
21
inline
constexpr
const
char
*
uboStruct
=
"UBO"
;
22
inline
constexpr
const
char
*
textColor
=
"textColor"
;
23
}
24
}
25
40
class
NAPAPI
FontShader
:
public
Shader
41
{
42
RTTI_ENABLE(
Shader
)
43
public
:
44
FontShader
(
Core
& core);
45
51
virtual
bool
init(
utility::ErrorState
& errorState)
override
;
52
53
private
:
54
RenderService
* mRenderService =
nullptr
;
55
};
56
}
nap::utility::ErrorState
Definition:
errorstate.h:19
nap::Shader
Definition:
shader.h:105
nap::RenderService
Definition:
renderservice.h:275
nap::Core
Definition:
core.h:82
nap::FontShader
Definition:
fontshader.h:40
nap::uniform::font::glyphSampler
constexpr const char * glyphSampler
Name of the 2D sampler that points to the glyph.
Definition:
fontshader.h:20
nap::uniform::font::uboStruct
constexpr const char * uboStruct
UBO that contains all the uniforms.
Definition:
fontshader.h:21
nap::uniform::font::textColor
constexpr const char * textColor
Text color vec3.
Definition:
fontshader.h:22
nap
Definition:
templateapp.h:17
Generated by doxygen