nw::lyt::ResourceAccessor::GetTexture Member Function

Syntax

virtual const TextureInfo GetTexture(
     const char * name
) = 0;

Arguments

Name Description
name The name of the texture resource.

Return Values

Returns texture information. This function attempts loading the texture if it is not owned. An invalid value TextureInfo::INVALID is set for the texture object if the texture cannot be loaded.

Description

Gets the texture information.

Gets the texture information bound to the texture object specified by name.

This function attempts loading the texture if it is not owned.

You can use LoadTexture() in the implementation.

See Also

LoadTexture

Revision History

2009/09/18
Initial version.
2010/01/26
Changed to a non-virtual function.
2010/06/18
Changed to a pure virtual function.

CONFIDENTIAL