nw::gfx::FragmentLight::CreateClone Member Function

Syntax

static FragmentLight * CreateClone(
     SceneNode * parent,
     ResFragmentLight resource,
     const FragmentLight::Description & description,
     os::IAllocator * allocator
);

Arguments

Name Description
in parent Parent node.
in resource Resource to be cloned.
in description Content to configure.
in allocator Allocator.

Return Values

Fragment light that was created.

Description

Clones a resource and created a fragment light.

A fragment light is created based on a resource cloned internally. The cloned resource is automatically destroyed when the fragment light created from it is destroyed.

Of the resource members, Name, UserData, and ChildrenTable are set to NULL without being copied. Furthermore, correct operations are not guaranteed after the original LUT is destroyed because the LUT is not copied and the same one as the original is referenced.


CONFIDENTIAL