Skip to content

class_meshlibrary

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&#95item ( int id )

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

  • void set&#95item&#95name ( int id, String name )

Set the name of the item.

  • void set&#95item&#95mesh ( int id, Mesh mesh )

Set the mesh of the item.

  • String get&#95item&#95name ( int id ) const

Return the name of the item.

  • Mesh get&#95item&#95mesh ( int id ) const

Return the mesh of the item.

  • void remove&#95item ( int id )

Remove the item.

  • void clear ( )

Clear the library.

  • IntArray get&#95item&#95list ( ) const

Return the list of items.

  • int get&#95last&#95unused&#95item&#95id ( ) const

Get an unused id for a new item.

Clone this wiki locally