NAP
nap
system_modules
naprender
src
textureshader.h
1
#pragma once
2
3
// External Includes
4
#include <shader.h>
5
6
namespace
nap
7
{
8
// Forward declares
9
class
Core;
10
class
RenderService;
11
12
// Video shader sampler names
13
namespace
uniform
14
{
15
namespace
texture
16
{
17
namespace
sampler
18
{
19
inline
constexpr
const
char
*
colorTexture
=
"colorTexture"
;
20
}
21
22
inline
constexpr
const
char
*
color
=
"color"
;
23
inline
constexpr
const
char
*
alpha
=
"alpha"
;
24
inline
constexpr
const
char
*
uboStruct
=
"UBO"
;
25
}
26
}
27
45
class
NAPAPI
TextureShader
:
public
Shader
46
{
47
RTTI_ENABLE(
Shader
)
48
public
:
49
TextureShader
(
Core
& core);
50
56
virtual
bool
init(
utility::ErrorState
& errorState)
override
;
57
58
private
:
59
RenderService
* mRenderService =
nullptr
;
60
};
61
}
nap::utility::ErrorState
Definition:
errorstate.h:19
nap::uniform::texture::sampler::colorTexture
constexpr const char * colorTexture
Name of the color texture sampler.
Definition:
textureshader.h:19
nap::Shader
Definition:
shader.h:105
nap::RenderService
Definition:
renderservice.h:275
nap::uniform::texture::uboStruct
constexpr const char * uboStruct
UBO that contains all the uniforms.
Definition:
textureshader.h:24
nap::Core
Definition:
core.h:82
nap::TextureShader
Definition:
textureshader.h:45
nap::uniform::texture::color
constexpr const char * color
color value (0-1)
Definition:
textureshader.h:22
nap
Definition:
templateapp.h:17
nap::uniform::texture::alpha
constexpr const char * alpha
alpha value (0-1)
Definition:
textureshader.h:23
Generated by doxygen