20 #ifndef HEADER_MODELVIEW_HPP 21 #define HEADER_MODELVIEW_HPP 25 #include "graphics/irr_driver.hpp" 26 #include "guiengine/widgets/icon_button_widget.hpp" 27 #include "utils/aligned_array.hpp" 28 #include "utils/leak_check.hpp" 29 #include "utils/ptr_vector.hpp" 46 RotationMode m_rotation_mode;
47 float m_rotation_speed;
48 float m_rotation_target;
51 std::vector<core::matrix4> m_model_location;
52 std::vector<std::pair<int, int> > m_model_frames;
53 std::vector<float> m_model_animation_speed;
54 std::vector<std::string> m_bone_attached;
55 std::unique_ptr<RenderTarget> m_render_target;
58 bool m_rtt_unsupported;
60 scene::ISceneNode *m_rtt_main_node;
62 scene::ICameraSceneNode *m_camera;
64 scene::ISceneNode *m_light;
66 std::shared_ptr<RenderInfo> m_render_info;
79 void addModel(irr::scene::IMesh* mesh,
80 const core::matrix4& location = core::matrix4(),
81 const int start_loop_frame=-1,
82 const int end_loop_frame=-1,
83 float animation_speed = 0.0f,
84 const std::string& bone_name = std::string());
88 void setRTTSize(
unsigned rtt_size) { m_rtt_size = rtt_size; }
104 void clearRttProvider();
106 void setupRTTScene();
108 void drawRTTScene(
const irr::core::rect<s32>& dest_rect)
const;
110 std::shared_ptr<RenderInfo> getModelViewRenderInfo() {
return m_render_info; }
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:31
Definition: render_info.hpp:27