24class SpriteAnimationAtlasEditor
27 ~SpriteAnimationAtlasEditor();
32 bool IsOpen()
const {
return mIsOpen; }
37 void DrawGridControls();
38 void DrawAtlasCanvas();
40 int32_t CellCount()
const {
return mCols * mRows; }
48 ImTextureID mImGuiTexId = 0;
49 uint32_t mAtlasWidth = 0;
50 uint32_t mAtlasHeight = 0;
57 int32_t mSpacingX = 0;
58 int32_t mSpacingY = 0;
59 std::vector<int32_t> mFrameIndices;
61 int32_t mHoveredCell = -1;
64 bool mJustOpened =
false;
66 uint64_t mLastDrawFrame = 0;
71 static int32_t sLastCols;
72 static int32_t sLastRows;
73 static int32_t sLastMarginX;
74 static int32_t sLastMarginY;
75 static int32_t sLastSpacingX;
76 static int32_t sLastSpacingY;
77 static bool sHasCarryover;
80SpriteAnimationAtlasEditor* GetSpriteAnimationAtlasEditor();
Definition SpriteAnimation.h:31