Game Development Reference
In-Depth Information
notificationManager.BeginChangeBatch();
...
/*
Command execution code. In case of a macro will execute several
commands more. Every command can dispatch some notifications.
*/
...
notificationManager.EndChangeBatch();
Listing 13.2. Command execution code.
13.4.5 External Utilities
We can create a command to execute command line utilities if our tools or pipelines
use this kind of application. The parameters provided to this command are both
the name of the tool to be run and the arguments it needs for its functioning.
Running these kinds of tools from anywhere in our system is easy:
Command clToolCmd;
clToolCmd = factory.CreateCommand("CommandLineTool");
clToolCmd.SetParam("TOOLNAME","fxc");
clToolCmd.SetParam("ARGS","/T fx_4_0 /Fo aex.fxo aex.fx");
clToolCmd.Execute();
Bibliography
[Gamma et al. 95] Eric Gamma, Richard Helm, Ralph Johnson and John Vlissides.
Design Patterns: Elements of Reusable Object-Oriented Software . Reading,
MA: Addison-Wesley, 1995.
Search WWH ::




Custom Search