CreateComponentInfo代码排版

This commit is contained in:
2025-07-27 16:46:35 +08:00
parent a27150c9d2
commit 510168e912

View File

@@ -2,49 +2,45 @@
#include<hgl/math/Matrix.h>
namespace hgl
namespace hgl::graph
{
namespace graph
class SceneNode;
struct CreateComponentInfo
{
class SceneNode;
graph::SceneNode *owner_node; ///<所属节点
graph::Matrix4f mat; ///<变换矩阵
struct CreateComponentInfo
public:
CreateComponentInfo()
{
graph::SceneNode *owner_node; ///<所属节点
graph::Matrix4f mat; ///<变换矩阵
owner_node=nullptr;
mat=graph::Identity4f;
}
public:
CreateComponentInfo(const CreateComponentInfo &cci)
{
owner_node=cci.owner_node;
mat=cci.mat;
}
CreateComponentInfo()
{
owner_node=nullptr;
mat=graph::Identity4f;
}
CreateComponentInfo(graph::SceneNode *pn,const graph::Matrix4f &m)
{
owner_node=pn;
mat=m;
}
CreateComponentInfo(const CreateComponentInfo &cci)
{
owner_node=cci.owner_node;
mat=cci.mat;
}
CreateComponentInfo(graph::SceneNode *pn)
{
owner_node=pn;
mat=graph::Identity4f;
}
CreateComponentInfo(graph::SceneNode *pn,const graph::Matrix4f &m)
{
owner_node=pn;
mat=m;
}
CreateComponentInfo(graph::SceneNode *pn)
{
owner_node=pn;
mat=graph::Identity4f;
}
CreateComponentInfo(const graph::Matrix4f &m)
{
owner_node=nullptr;
mat=m;
}
};//struct CreateComponentInfo
}//namespace graph
}//namespace hgl
CreateComponentInfo(const graph::Matrix4f &m)
{
owner_node=nullptr;
mat=m;
}
};//struct CreateComponentInfo
}//namespace hgl::graph