Skip to content
reduz edited this page Feb 23, 2014 · 9 revisions

MeshLibrary

####Inherits: Resource ####Category: Core

Brief Description

Library of meshes.

Member Functions

Description

Library of meshes. Contains a list of Mesh resources, each with name and ID. Useful for GridMap or painting Terrain.

Member Function Description

  • void create_item ( int id )

Create a new item in the library, supplied an id.

Set the name of the item.

  • void set_item_mesh ( int id, Mesh mesh )

Set the mesh of the item.

Return the name of the item.

  • Mesh get_item_mesh ( int id ) const

Return the mesh of the item.

  • void remove_item ( int id )

Remove the item.

  • void clear ( )

Clear the library.

Return the list of items.

  • int get_last_unused_item_id ( ) const

Get an unused id for a new item.

Clone this wiki locally