- added implementation for method get_step
This commit is contained in:
parent
7a723244a0
commit
2b6873903c
1 changed files with 9 additions and 0 deletions
|
@ -61,6 +61,7 @@ FGMaterialLib material_lib;
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
FGMaterialLib::FGMaterialLib ( void ) {
|
FGMaterialLib::FGMaterialLib ( void ) {
|
||||||
|
set_step(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -297,6 +298,14 @@ void FGMaterialLib::set_step ( int step )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Get the step for the state selectors
|
||||||
|
int FGMaterialLib::get_step ()
|
||||||
|
{
|
||||||
|
material_map_iterator it = begin();
|
||||||
|
return it->second->get_state()->getSelectStep();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Load one pending "deferred" texture. Return true if a texture
|
// Load one pending "deferred" texture. Return true if a texture
|
||||||
// loaded successfully, false if no pending, or error.
|
// loaded successfully, false if no pending, or error.
|
||||||
void FGMaterialLib::load_next_deferred() {
|
void FGMaterialLib::load_next_deferred() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue