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
@@ -11,8 +11,6 @@
|
||||
#include "resources.h"
|
||||
#include "settings.h"
|
||||
|
||||
namespace anm2ed::imgui
|
||||
{
|
||||
class AnimationPreview : public CanvasView
|
||||
{
|
||||
MIX_Mixer* mixer = MIX_CreateMixerDevice(SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK, nullptr);
|
||||
@@ -22,7 +20,7 @@ namespace anm2ed::imgui
|
||||
bool isMoveDragging{};
|
||||
glm::vec2 moveOffset{};
|
||||
glm::vec2 nullRectScaleAnchor{};
|
||||
render::Recorder recorder{};
|
||||
Recorder recorder{};
|
||||
glm::vec2 recordSize{};
|
||||
glm::vec2 recordPan{};
|
||||
float recordZoom{};
|
||||
@@ -30,17 +28,16 @@ namespace anm2ed::imgui
|
||||
// Where each item's pivot is at every frame of the animation, kept until the document or view changes.
|
||||
struct PivotPath
|
||||
{
|
||||
model::Draw item{};
|
||||
Draw item{};
|
||||
std::vector<glm::vec2> points{};
|
||||
};
|
||||
std::vector<PivotPath> pivotPaths{};
|
||||
std::tuple<std::uint64_t, std::uint64_t, int, bool> pivotPathsKey{};
|
||||
|
||||
void recording_start(Manager&, Settings&, Document&, const model::Animation*);
|
||||
void recording_start(Manager&, Settings&, Document&, const Animation*);
|
||||
void recording_stop(Manager&, Document&);
|
||||
|
||||
public:
|
||||
void tick(Manager&, Settings&, float);
|
||||
void update(Manager&, Settings&, Resources&);
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user