Remove namespaces, and make file-local helpers static
Names that only a namespace told apart get prefixes: TOOL_PAN, FONT_BOLD, ICON_FOLDER, COLOR_WHITE, path_to_utf8 and so on. The OpenGL shader class is ShaderProgram, and its uniform ShaderUniform, beside the document's Shader and Uniform. Free functions a member of the same name would hide are called through :: for now. Two unused shader window helpers are gone.
This commit is contained in:
1 parent
7fb2c607c2
commit
666f65bf3a
174 files changed
+2396
-3154
No files matched your search
+9
-15
@@ -3,25 +3,20 @@
|
||||
#include <imgui/imgui.h>
|
||||
#include "embed.h"
|
||||
|
||||
namespace anm2ed::resource::font
|
||||
{
|
||||
constexpr auto SIZE = 16;
|
||||
constexpr auto SIZE_LARGE = 32;
|
||||
constexpr auto FONT_SIZE = 16;
|
||||
constexpr auto FONT_SIZE_LARGE = 32;
|
||||
|
||||
enum Type
|
||||
enum FontStyle
|
||||
{
|
||||
REGULAR,
|
||||
ITALICS,
|
||||
BOLD,
|
||||
BOLD_ITALICS,
|
||||
COUNT
|
||||
FONT_REGULAR,
|
||||
FONT_ITALICS,
|
||||
FONT_BOLD,
|
||||
FONT_BOLD_ITALICS,
|
||||
FONT_COUNT
|
||||
};
|
||||
|
||||
constexpr const Embed* FONTS[COUNT] = {&FONT_REGULAR_TTF, &FONT_ITALICS_TTF, &FONT_BOLD_TTF, &FONT_BOLD_ITALICS_TTF};
|
||||
}
|
||||
constexpr const Embed* FONTS[FONT_COUNT] = {&FONT_REGULAR_TTF, &FONT_ITALICS_TTF, &FONT_BOLD_TTF, &FONT_BOLD_ITALICS_TTF};
|
||||
|
||||
namespace anm2ed::resource
|
||||
{
|
||||
class Font
|
||||
{
|
||||
ImFont* pointer{};
|
||||
@@ -36,4 +31,3 @@ namespace anm2ed::resource
|
||||
ImFont* get();
|
||||
Font& operator=(Font&&) noexcept;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user