nw::lyt::GraphicsResource::SetResource Member Function

Syntax

void SetResource(
     int index,
     void * content,
     u32 fileSize,
     bool bFree = true
);

Arguments

Name Description
index The resource file index number.
content Resource file contents.
fileSize Resource file size.
bFree Leaves deletion of memory for content up to the library.

Return Values

None.

Description

Sets the resource file.

Specify the index when the path was obtained in index.

If true is specified in bFree, the library frees the memory pointed to by content using Layout::FreeMemory(). Memory for content must be allocated using Layout::AllocMemory().

See Also

StartSetup
Layout::AllocMemory

Revision History

2010/04/23
Added the bFree argument.
2009/09/18
Initial version.

CONFIDENTIAL