SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
CoHSceneConverter.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2019 SEGS Team (see AUTHORS.md)
5  * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
6  */
7 
8 #pragma once
11 #include <Lutefisk3D/Math/Matrix3x4.h>
12 #include <Lutefisk3D/Math/BoundingBox.h>
13 #include <Lutefisk3D/Container/Ptr.h>
14 #include <glm/matrix.hpp>
15 
16 #include <QString>
17 #include <QHash>
18 
19 #include <vector>
20 #include <unordered_map>
21 
22 inline Urho3D::Vector3 fromGLM(glm::vec3 v)
23 {
24  return {v.x,v.y,v.z};
25 }
26 
27 namespace Urho3D
28 {
29  class Node;
30  class Context;
31 }
32 
33 enum
34 {
37 };
38 
40 
42 {
44  Urho3D::SharedPtr<Urho3D::Node> m_first_instance;
45  std::vector<Urho3D::WeakPtr<Urho3D::Node> > m_instances;
46 };
47 extern std::vector<ConvertedInstance> g_converted_instances;
48 extern std::unordered_map<SEGS::SceneNode *,int> g_node_to_converted;
49 
50 Urho3D::Node * convertedNodeToLutefisk(SEGS::SceneNode *def, Urho3D::Node *urho_parent, const Urho3D::Matrix3x4 & mat, Urho3D::Context *ctx, int depth, int opt=CONVERT_MINIMAL);
Definition: CohModelConverter.h:20
Urho3D::SharedPtr< Urho3D::Node > m_first_instance
Definition: CoHSceneConverter.h:44
Definition: Model.h:88
Definition: CoHSceneConverter.h:35
Urho3D::Node * convertedNodeToLutefisk(SEGS::SceneNode *def, Urho3D::Node *urho_parent, const Urho3D::Matrix3x4 &mat, Urho3D::Context *ctx, int depth, int opt=CONVERT_MINIMAL)
std::unordered_map< SEGS::SceneNode *, int > g_node_to_converted
Definition: CoHSceneConverter.cpp:45
Urho3D::Vector3 fromGLM(glm::vec3 v)
Definition: CoHSceneConverter.h:22
SEGS::SceneNode * source_node
Definition: CoHSceneConverter.h:43
Definition: SceneGraph.h:42
Definition: CoHSceneConverter.h:41
Definition: CoHSceneConverter.h:36
std::vector< ConvertedInstance > g_converted_instances
Definition: CoHSceneConverter.cpp:44
std::vector< Urho3D::WeakPtr< Urho3D::Node > > m_instances
Definition: CoHSceneConverter.h:45