Hi. I have a question. Can an engine accept command arguments? For example, if I want to have a user to select a resolution, color depth, tripple buffering on/off, etc. right from a dialog box that I made using Visual C#. I know 3DGS doesn't support C# but I just want my program to pass on the parameters (meaning command arguments).

Here's an example in C#:

Code:

/// <summary>
/// When a user click an Okay button, the game starts. This button will send the command
/// arguments to the engine. For example of command arguments, see the example in "//"
/// below.
/// </summary>
/// <param name
private void Okay_Clicked(object sender, System.EventArgs e)
{
Process ExecEngine;
ExecEngine.StartInfo.FileName = "C:\\MyProject\\SimpleGame\\SimpleGame.exe";
// Here's an example of passing command arguments to a file called SimpleGame.exe:
// -res:7 -color:32 -anis:2 -tb:1 -sd:24
ExecEngine.Arguments = resolution + " "
+ colordepth + " "
+ anisotropic_filter + " "
+ tripple_buffer + " "
+ shadow_depth;
ExecEngine.Start();
}



So the question is: Can the engine accept command arguments? I know that the example that I showed you is incorrect (but maybe it is... ) but I just want to know.

Anyway, this topic is engine-related.