nw::gfx::SceneBuilder::BuildSceneObject Member Function

Syntax

SceneObject * BuildSceneObject(
     os::MemorySizeCalculator * pSize,
     os::MemorySizeCalculator * pDeviceSize,
     SceneNode * parent,
     ResSceneObject resource,
     os::IAllocator * allocator,
     os::IAllocator * deviceAllocator,
     bool isRecursive,
     bool isCalculation
) const;

Arguments

Name Description
pSize Pointer to MemorySizeCalculator for getting the memory size.
pDeviceSize Pointer to MemorySizeCalculator for getting the device memory size.
in parent The SceneNode that will be the parent.
in resource Resource.
in allocator Allocator.
in deviceAllocator Allocator for device memory.
in isRecursive Flag for whether or not to recursively create child hierarchy.
in isCalculation Flag that determines whether to calculate the memory size.

Return Values

Returns the object that was created.

Description

Creates a scene object.

Specify true for the isCalculation argument to only calculate the required memory size, without generating any objects.


CONFIDENTIAL