nw::gfx::SceneBuilder::CreateTree Member Function

Syntax

SceneObject * CreateTree(
     os::IAllocator * allocator,
     os::IAllocator * deviceAllocator
);

Arguments

Name Description
in allocator Allocator.
in deviceAllocator Allocator for device memory.

Return Values

Returns the scene object of the root node that was created.

Description

Creates a scene tree with configured resource serving as the root node. Because all references below the child hierarchy contained in the resource are followed and instantiated, if you initialize or use other operations all of the models contained in the resource the objects in the child hierarchy become instantiated twice.


CONFIDENTIAL