27 lines
552 B
C++
27 lines
552 B
C++
#pragma once
|
|
|
|
#include "canvas.hpp"
|
|
#include "manager.hpp"
|
|
#include "resources.hpp"
|
|
#include "settings.hpp"
|
|
|
|
namespace anm2ed::imgui
|
|
{
|
|
class SpritesheetEditor : public Canvas
|
|
{
|
|
glm::vec2 mousePos{};
|
|
glm::vec2 previousMousePos{};
|
|
glm::vec2 cropAnchor{};
|
|
glm::vec2 checkerPan{};
|
|
glm::vec2 checkerSyncPan{};
|
|
float checkerSyncZoom{};
|
|
bool isCheckerPanInitialized{};
|
|
bool hasPendingZoomPanAdjust{};
|
|
int hoveredRegionId{-1};
|
|
|
|
public:
|
|
SpritesheetEditor();
|
|
void update(Manager&, Settings&, Resources&);
|
|
};
|
|
}
|