Python Script Engine  7.2
GL Studio Editor Python Script API
MaterialArray Class Reference

Public Member Functions

 MaterialArray ()
 
void Insert (disti::Material &mat)
 
unsigned int GetCount () const
 

Detailed Description

Common editor interface MaterialArray.

If the MaterialArray instance is empty, it will return 'False' in comparison checks.

1 # Python:
2 import MaterialArray
3 materialArray = MaterialArray.MaterialArray()
4 if materialArray: # Will be False
5  pass
6 materialArray.Insert( someMaterial )
7 if materialArray: # Will be True
8  pass

Constructor & Destructor Documentation

MaterialArray::MaterialArray ( )

default ctor

Member Function Documentation

unsigned int MaterialArray::GetCount ( ) const

get the number of elements in the array

Returns
the number of elements in the array
void MaterialArray::Insert ( disti::Material &  mat)

insert the given material at the end of the array

Parameters
matmaterial to insert

The documentation for this class was generated from the following file: