Move ui::painter_impl internals to anonymous namespace
This commit is contained in:
parent
3a5e29835f
commit
3ec4d1ed90
1 changed files with 61 additions and 57 deletions
|
|
@ -10,7 +10,10 @@
|
||||||
namespace psemek::ui
|
namespace psemek::ui
|
||||||
{
|
{
|
||||||
|
|
||||||
static char const colored_vs[] =
|
namespace
|
||||||
|
{
|
||||||
|
|
||||||
|
char const colored_vs[] =
|
||||||
R"(#version 330
|
R"(#version 330
|
||||||
|
|
||||||
uniform mat4 u_transform;
|
uniform mat4 u_transform;
|
||||||
|
|
@ -28,7 +31,7 @@ void main()
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
static char const colored_fs[] =
|
char const colored_fs[] =
|
||||||
R"(#version 330
|
R"(#version 330
|
||||||
|
|
||||||
in vec4 color;
|
in vec4 color;
|
||||||
|
|
@ -41,7 +44,7 @@ void main()
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
static char const bitmap_text_vs[] =
|
char const bitmap_text_vs[] =
|
||||||
R"(#version 330
|
R"(#version 330
|
||||||
|
|
||||||
uniform mat4 u_transform;
|
uniform mat4 u_transform;
|
||||||
|
|
@ -64,7 +67,7 @@ void main()
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
static char const bitmap_text_fs[] =
|
char const bitmap_text_fs[] =
|
||||||
R"(#version 330
|
R"(#version 330
|
||||||
|
|
||||||
uniform sampler2D u_atlas;
|
uniform sampler2D u_atlas;
|
||||||
|
|
@ -80,7 +83,7 @@ void main()
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
static char const textured_vs[] =
|
char const textured_vs[] =
|
||||||
R"(#version 330
|
R"(#version 330
|
||||||
|
|
||||||
uniform mat4 u_transform;
|
uniform mat4 u_transform;
|
||||||
|
|
@ -103,7 +106,7 @@ void main()
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
static char const textured_fs[] =
|
char const textured_fs[] =
|
||||||
R"(#version 330
|
R"(#version 330
|
||||||
|
|
||||||
uniform sampler2D u_texture;
|
uniform sampler2D u_texture;
|
||||||
|
|
@ -119,7 +122,6 @@ void main()
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
|
||||||
struct colored_vertex
|
struct colored_vertex
|
||||||
{
|
{
|
||||||
geom::point<float, 2> position;
|
geom::point<float, 2> position;
|
||||||
|
|
@ -181,6 +183,8 @@ void main()
|
||||||
return b1.texture == b2.texture;
|
return b1.texture == b2.texture;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
struct painter_impl::impl
|
struct painter_impl::impl
|
||||||
{
|
{
|
||||||
std::uint32_t depth = 0;
|
std::uint32_t depth = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue