19#ifndef HEADER_LOD_NODE_LOADER_HPP
20#define HEADER_LOD_NODE_LOADER_HPP
23class STKInstancedSceneNode;
24namespace GE {
class GERenderInfo; }
32#include "io/xml_node.hpp"
45 std::string m_model_file;
52 bool m_skeletal_animation;
58 m_skeletal_animation =
false;
63 ModelDefinition(
const XMLNode* xml,
int distance, std::string& model,
bool tangent,
bool skeletal_animation)
69 m_skeletal_animation = skeletal_animation;
83 std::map<std::string, XMLNode*> m_library_nodes;
84 std::map< std::string, std::vector< ModelDefinition > > m_lod_groups;
85 std::map< std::string, STKInstancedSceneNode* > m_instancing_nodes;
91 void addModelDefinition(
const XMLNode* xml);
93 scene::ISceneNode* parent,
94 std::shared_ptr<GE::GERenderInfo> ri);
98 scene::IMesh* getFirstMeshFor(
const std::string& name);
100 std::map<std::string, XMLNode*>& getLibraryNodes()
102 return m_library_nodes;
105 void cleanLibraryNodesAfterLoad();
107 bool containsLibraryNode(
const std::string& name)
const
109 return m_library_nodes.find(name) != m_library_nodes.end();
112 void addToLibrary(
const std::string& name,
XMLNode* xml)
115 m_library_nodes[name] = xml;
manages level-of-detail
Definition: lod_node.hpp:50
Utility class to load level-of-detail nodes and library nodes.
Definition: model_definition_loader.hpp:81
Definition: track.hpp:114
utility class used to parse XML files
Definition: xml_node.hpp:48
Definition: model_definition_loader.hpp:44
ModelDefinition()
Constructor to allow storing this in STL containers.
Definition: model_definition_loader.hpp:55
int m_distance
For LOD.
Definition: model_definition_loader.hpp:50