8#include "ICameraSceneNode.h"
16 GUIScene(gui::IGUIEnvironment *env, scene::ISceneManager *smgr,
17 gui::IGUIElement *parent, core::recti rect, s32
id = -1);
21 scene::IAnimatedMeshSceneNode *
setMesh(scene::IAnimatedMesh *mesh =
nullptr);
29 void setStyles(
const std::array<StyleSpec, StyleSpec::NUM_STATES> &styles);
32 virtual bool OnEvent(
const SEvent &event);
51 scene::IAnimatedMeshSceneNode *
m_mesh =
nullptr;
void setAnimationSpeed(f32 speed)
Sets the animation speed (FPS) for the mesh.
Definition guiScene.cpp:157
scene::ICameraSceneNode * m_cam
Definition guiScene.h:49
virtual void draw()
Definition guiScene.cpp:65
void enableMouseControl(bool enable) noexcept
Definition guiScene.h:26
v2f m_last_pos
Definition guiScene.h:62
void setTexture(u32 idx, video::ITexture *texture)
Definition guiScene.cpp:52
v3f m_target_pos
Definition guiScene.h:58
~GUIScene()
Definition guiScene.cpp:28
v3f m_last_target_pos
Definition guiScene.h:59
scene::ISceneNode * m_target
Definition guiScene.h:50
video::IVideoDriver * m_driver
Definition guiScene.h:48
void setBackgroundColor(const video::SColor &color) noexcept
Definition guiScene.h:23
void setCameraRotation(v3f rot)
Definition guiScene.cpp:209
bool correctBounds(v3f &rot)
Definition guiScene.cpp:223
void setFrameLoop(f32 begin, f32 end)
Sets the frame loop range for the mesh.
Definition guiScene.cpp:148
void updateTargetPos()
Definition guiScene.cpp:202
virtual bool OnEvent(const SEvent &event)
Definition guiScene.cpp:113
f32 m_cam_distance
Definition guiScene.h:53
scene::IAnimatedMeshSceneNode * m_mesh
Definition guiScene.h:51
scene::IAnimatedMeshSceneNode * setMesh(scene::IAnimatedMesh *mesh=nullptr)
Definition guiScene.cpp:35
void setRotation(v2f rot) noexcept
Definition guiScene.h:27
video::SColor m_bgcolor
Definition guiScene.h:71
v2f m_curr_pos
Definition guiScene.h:61
void rotateCamera(const v3f &delta)
Definition guiScene.h:45
void updateCamera(scene::ISceneNode *target)
Definition guiScene.cpp:191
v3f m_cam_pos
Definition guiScene.h:57
scene::ISceneManager * m_smgr
Definition guiScene.h:47
GUIScene(gui::IGUIEnvironment *env, scene::ISceneManager *smgr, gui::IGUIElement *parent, core::recti rect, s32 id=-1)
Definition guiScene.cpp:15
void calcOptimalDistance()
Definition guiScene.cpp:164
bool m_mouse_ctrl
Definition guiScene.h:66
void updateCameraPos()
Definition guiScene.h:43
void setStyles(const std::array< StyleSpec, StyleSpec::NUM_STATES > &styles)
Definition guiScene.cpp:136
bool m_initial_rotation
Definition guiScene.h:69
bool m_inf_rot
Definition guiScene.h:68
bool m_update_cam
Definition guiScene.h:67
u64 m_last_time
Definition guiScene.h:55
void enableContinuousRotation(bool enable) noexcept
Definition guiScene.h:28
v3f getCameraRotation() const
Definition guiScene.h:44
void cameraLoop()
Definition guiScene.cpp:243
v2f m_custom_rot
Definition guiScene.h:64
core::vector2d< f32 > v2f
Definition irr_v2d.h:11
core::vector3df v3f
Definition irr_v3d.h:11
Definition clientmap.h:30
#define idx(x, y)
Definition noise.cpp:490