Examples in cpp instead of cs.
by Sean Breslin · in Torque Game Engine · 10/21/2006 (4:45 pm) · 5 replies
I'm using C++, not C#. All of the examples are in C#.
It's compatible with regular C++, right?
Assuming it is, does this mean I have to miss out entirely on what could otherwise be gained by looking at the examples? Are there any C++ versions of the examples somewhere?
It's compatible with regular C++, right?
Assuming it is, does this mean I have to miss out entirely on what could otherwise be gained by looking at the examples? Are there any C++ versions of the examples somewhere?
#2
The engine itself is all C++, I see that. I don't see a single *.cpp file in SDK/example though. I see some *.cs, so I figured it must've been C#, since C# uses that extension.
For a C++ compiler to know it's compiling a Torque Script file, wouldn't it need a *.h or *.hpp somewhere to tell it to include all of the Torque stuff?
EDIT: After compiling the contents of SDK/vc7, and trying to run Torque Demo only to have it be unable to find main.cs, and having seen a main.cs at the root of each example, I think I get it now.
10/21/2006 (4:56 pm)
*.cs is Torque Script?The engine itself is all C++, I see that. I don't see a single *.cpp file in SDK/example though. I see some *.cs, so I figured it must've been C#, since C# uses that extension.
For a C++ compiler to know it's compiling a Torque Script file, wouldn't it need a *.h or *.hpp somewhere to tell it to include all of the Torque stuff?
EDIT: After compiling the contents of SDK/vc7, and trying to run Torque Demo only to have it be unable to find main.cs, and having seen a main.cs at the root of each example, I think I get it now.
#3
10/21/2006 (8:14 pm)
.cs is torque script and the engine compiles it ( .dso), you dont compile it.
#4
Pick up the alpha of Torsion for easy editing of TorqueScript with syntax hylighting.
As a side note, it was probably unable to find the 'main.cs' because no working directory was set in your v7 solution.
10/21/2006 (10:37 pm)
The C++ side of things is located in ../engine/. You can use dOxygen to generate some very nice documentation of the C++ side of things. Or check theTDN. You can find lots of documentation there. Pick up the alpha of Torsion for easy editing of TorqueScript with syntax hylighting.
As a side note, it was probably unable to find the 'main.cs' because no working directory was set in your v7 solution.
#5
It is confusing, because "cs" also stands for "C-sharp" but, to their defense, Torque has used "cs" longer than Microsoft.
The C++ code is all in ".cc" files in the "engine" subdirectory of the "SDK" directory. However, you must learn TorqueScript to be at all successful with Torque, because most of the game play is defined in script, not in C++ code. Start out with the basic totorial (tutorial.base) where you run around picking up Torque logos, and go from there.
10/22/2006 (3:24 pm)
"cs" stands for "console script" (because TorqueScript grew out of the console command line).It is confusing, because "cs" also stands for "C-sharp" but, to their defense, Torque has used "cs" longer than Microsoft.
The C++ code is all in ".cc" files in the "engine" subdirectory of the "SDK" directory. However, you must learn TorqueScript to be at all successful with Torque, because most of the game play is defined in script, not in C++ code. Start out with the basic totorial (tutorial.base) where you run around picking up Torque logos, and go from there.
Torque 3D Owner Peter Simard
Default Studio Name
Edit: You are probably looking at the Torque Script files. They are a custom scripting language used by the C++ engine.