load

GraphicsModuleInterface::load

Loads a mesh in the Graphics Module and returns a unique identifier to this mesh.

Declaration

virtual MeshID load(const Mesh& mesh) = 0;

Parameters

Name

Type

Description

mesh

const Mesh&

Mesh to load in the Graphics Module.

Returns

A unique MeshID identifier for the mesh.

If the mesh could not be loaded, the returned value is NTSHENGN_MESH_UNKNOWN.


Loads an image in the Graphics Module and returns a unique identifier to this image.

Declaration

virtual ImageID load(const Image& image) = 0;

Parameters

Name

Type

Description

image

const Image&

Image to load in the Graphics Module.

Returns

A unique ImageID identifier for the image.

If the image could not be loaded, the returned value is NTSHENGN_IMAGE_UNKNOWN.


Loads a font in the Graphics Module and returns a unique identifier to this font.

Declaration

virtual FontID load(const Font& font) = 0;

Parameters

Name

Type

Description

font

const Font&

Font to load in the Graphics Module.

Returns

A unique FontID identifier for the font.

If the font could not be loaded, the returned value is NTSHENGN_FONT_UNKNOWN.