Move ui::painter_impl internals to anonymous namespace

This commit is contained in:
Nikita Lisitsa 2021-10-14 21:48:03 +03:00
parent 3a5e29835f
commit 3ec4d1ed90

View file

@ -10,7 +10,10 @@
namespace psemek::ui
{
static char const colored_vs[] =
namespace
{
char const colored_vs[] =
R"(#version 330
uniform mat4 u_transform;
@ -28,7 +31,7 @@ void main()
}
)";
static char const colored_fs[] =
char const colored_fs[] =
R"(#version 330
in vec4 color;
@ -41,7 +44,7 @@ void main()
}
)";
static char const bitmap_text_vs[] =
char const bitmap_text_vs[] =
R"(#version 330
uniform mat4 u_transform;
@ -64,7 +67,7 @@ void main()
}
)";
static char const bitmap_text_fs[] =
char const bitmap_text_fs[] =
R"(#version 330
uniform sampler2D u_atlas;
@ -80,7 +83,7 @@ void main()
}
)";
static char const textured_vs[] =
char const textured_vs[] =
R"(#version 330
uniform mat4 u_transform;
@ -103,7 +106,7 @@ void main()
}
)";
static char const textured_fs[] =
char const textured_fs[] =
R"(#version 330
uniform sampler2D u_texture;
@ -119,7 +122,6 @@ void main()
}
)";
struct colored_vertex
{
geom::point<float, 2> position;
@ -181,6 +183,8 @@ void main()
return b1.texture == b2.texture;
}
}
struct painter_impl::impl
{
std::uint32_t depth = 0;