#include <command.h>
Inheritance diagram for CommandPreloadTextures:


Public Member Functions | |
| CommandPreloadTextures (const std::string &) | |
| void | process (ExecutionEnvironment &) |
Private Attributes | |
| std::string | name |
|
|
Definition at line 666 of file command.cpp. 00666 : 00667 name(_name) 00668 { 00669 }
|
|
|
Implements InstantaneousCommand. Definition at line 671 of file command.cpp. References Selection::body(), Renderer::loadTextures(), and name. 00672 {
00673 Selection target = env.getSimulation()->findObjectFromPath(name);
00674 if (target.body() == NULL)
00675 return;
00676
00677 if (env.getRenderer() != NULL)
00678 env.getRenderer()->loadTextures(target.body());
00679 }
|
|
|
Definition at line 465 of file command.h. Referenced by process(). |
1.4.1