Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

CommandPreloadTextures Class Reference

#include <command.h>

Inheritance diagram for CommandPreloadTextures:

Inheritance graph
Collaboration diagram for CommandPreloadTextures:

Collaboration graph
List of all members.

Public Member Functions

 CommandPreloadTextures (const std::string &)
void process (ExecutionEnvironment &)

Private Attributes

std::string name

Constructor & Destructor Documentation

CommandPreloadTextures::CommandPreloadTextures const std::string  ) 
 

Definition at line 666 of file command.cpp.

00666                                                                   :
00667     name(_name)
00668 {
00669 }


Member Function Documentation

void CommandPreloadTextures::process ExecutionEnvironment  )  [virtual]
 

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 }


Member Data Documentation

std::string CommandPreloadTextures::name [private]
 

Definition at line 465 of file command.h.

Referenced by process().


The documentation for this class was generated from the following files:
Generated on Sat Jan 14 22:33:13 2006 for Celestia by  doxygen 1.4.1