C++ | Python |
---|
Cmaxwell::Cmaterial::Citerator | CmaxwellMaterialIterator |
Iterates over all materials in a scene.
Methods
Citerator
Class constructor
Language | Syntax |
---|
C++ | Citerator() |
Python | CmaxwellMaterialIterator() |
first
Gets first material of the scene.
Language | Syntax |
---|
C++ | Cmaxwell::Cmaterial first( Cmaxwell* pMaxwell ) |
Python | CmaxwellMaterial first( Cmaxwell pMaxwell ) |
Examples
Code Block |
---|
|
Cmaxwell::Cmaterial::Citerator it;
Cmaxwell::Cmaterial material = it.first( scene ); |
Code Block |
---|
|
it = CmaxwellMaterialIterator();
material = it.first( scene ); |
next
Gets next material.
Language | Syntax |
---|
C++ | Cmaxwell::Cmaterial next() |
Python | CmaxwellMaterial next() |
Examples
Code Block |
---|
|
Cmaxwell::Cmaterial::Citerator it;
Cmaxwell::Cmaterial material = it.first( scene );
while( !material.isNull() )
{
// Do something with the material
material = it.next();
} |
Code Block |
---|
|
it = CmaxwellMaterialIterator();
material = it.first( scene );
while not material.isNull():
# Do something with the material
material = it.next(); |