nw::demo::Utility::CreateSceneNode Member Function

Syntax

static nw::gfx::SceneNode * CreateSceneNode(
     os::IAllocator * deviceAllocator,
     nw::gfx::ResSceneObject resource,
     bool isAnimationEnabled = true,
     nw::gfx::Model::BufferOption bufferOption = nw::gfx::Model::FLAG_BUFFER_NOT_USE,
     s32 maxAnimObjects = 1
);

Arguments

Name Description
in deviceAllocator Device memory allocator used for generation.
in resource Scene object resource.
in isAnimationEnabled Specifies whether animation is enabled.
in bufferOption Type of buffer.
in maxAnimObjects The maximum number of AnimObject's per AnimGroup held by AnimBinding.

Return Values

Returns the created instance.

Description

Creates an instance of the scene node from the scene object resource.


CONFIDENTIAL