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