nw::lyt::Layout::SetLayoutDrawEnable Member Function

Syntax

static void SetLayoutDrawEnable(
     bool enable
);

Arguments

Name Description
enable Specifies TRUE if using Layout::Draw.

Return Values

None.

Description

Declares whether Layout::Draw is to be used (not recommended).

This function can be used only if the library is built with the NW_LYT_DMPGL_ENABLED macro defined.

Set to false by default.

Objects (shaders, vertex buffers, textures) created from resources using the DMPGL API are required in order to draw using Layout::Draw().

(This is not required for drawing with Drawer.)

If use of Layout::Draw is declared after this function, DMPGL objects will be created during initialization and execution of the resource accessor.

Call this function before both GraphicsResource::StartSetup() and Layout::Build().

See Also

GetLayoutDrawEnable
GraphicsResource::StartSetup
Build

Revision History

2010/07/30
Initial version.
2010/10/20
Made so that can be used only if the library is built with the NW_LYT_DMPGL_ENABLED macro defined.

CONFIDENTIAL