summaryrefslogtreecommitdiff
path: root/src/gui/guiScene.h
diff options
context:
space:
mode:
authorThomas--S <Thomas--S@users.noreply.github.com>2020-12-15 19:06:36 +0100
committerGitHub <noreply@github.com>2020-12-15 19:06:36 +0100
commitd0a38f694d483fbd9c0554c8d7175a94097fd67e (patch)
tree67ab895363386282115cf6c0b34a9303c38b9a15 /src/gui/guiScene.h
parent3ed940ff13fc2b4ef4b63f2c506ed9e5ab59f54f (diff)
downloadminetest-d0a38f694d483fbd9c0554c8d7175a94097fd67e.tar.gz
minetest-d0a38f694d483fbd9c0554c8d7175a94097fd67e.tar.bz2
minetest-d0a38f694d483fbd9c0554c8d7175a94097fd67e.zip
Formspec: Allow to specify frame loop for model[] (#10679)
Add the ability to specify an animation frame loop range for the model[] formspec element.
Diffstat (limited to 'src/gui/guiScene.h')
-rw-r--r--src/gui/guiScene.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/guiScene.h b/src/gui/guiScene.h
index 707e6f66a..08eb7f350 100644
--- a/src/gui/guiScene.h
+++ b/src/gui/guiScene.h
@@ -36,6 +36,7 @@ public:
scene::IAnimatedMeshSceneNode *setMesh(scene::IAnimatedMesh *mesh = nullptr);
void setTexture(u32 idx, video::ITexture *texture);
void setBackgroundColor(const video::SColor &color) noexcept { m_bgcolor = color; };
+ void setFrameLoop(s32 begin, s32 end);
void enableMouseControl(bool enable) noexcept { m_mouse_ctrl = enable; };
void setRotation(v2f rot) noexcept { m_custom_rot = rot; };
void enableContinuousRotation(bool enable) noexcept { m_inf_rot = enable; };