DYTSrouce/src/scene/MeshManager.h

24 lines
435 B
C
Raw Normal View History

2025-01-04 04:12:51 +00:00
#pragma once
#include <map>
#include <osg/Node>
#include <osg/MatrixTransform>
#include "app/Singleton.h"
class MeshManager : public QObject, public Singleton<MeshManager> {
Q_OBJECT
public:
MeshManager(QObject* parent = nullptr);
~MeshManager( void );
void OnDestory();
osg::MatrixTransform* ReadNode(const std::string& file);
private:
using NodeMap = std::map<std::string, osg::ref_ptr<osg::Node>>;
NodeMap nodes_;
};