MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / PropBase

Method PropBase

Rtxpt/SampleGame/GameProps.cpp:42–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40using namespace game;
41
42PropBase::PropBase(GameScene& gameScene, const std::string & name)
43 : m_gameScene(gameScene)
44{
45 const std::shared_ptr<class ExtendedScene>& scene = gameScene.GetScene();
46 m_node = std::make_shared<SceneGraphNode>();
47
48 m_node = scene->GetSceneGraph()->Attach(scene->GetSceneGraph()->GetRootNode(), m_node);
49 m_node->SetName(name);
50}
51
52std::shared_ptr<ModelInstance> PropBase::CreateAndAttachModel(const std::shared_ptr<game::ModelType> & modelType, const std::string & instanceName, const dm::float3& translation, const dm::quat& rotation, const dm::float3& scaling )
53{

Callers

nothing calls this directly

Calls 1

GetSceneMethod · 0.80

Tested by

no test coverage detected