24 lines
435 B
C++
24 lines
435 B
C++
#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_;
|
|
};
|